function start(){
a();
b();
}
function a (){
$('#start').text("张三");
}
function b(){
alert("hello world");
}
我想要b()先执行。谢谢
function start(){
a();
b();
}
function a (){
$('#start').text("张三");
}
function b(){
alert("hello world");
}
我想要b()先执行。谢谢
你把b()放前面不就行了
方法一:
function start(){
b();
a();
}
或者
function start(){
alert("hello world");
a();
}