我想把我的整个网站的标题变成一个变量。因此,例如,我想将这三行放入一个变量中:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
我正在为它编写一个函数:
function set_header(){
//This is where i would like to set the variable for the 3 lines I mentioned earlier
}