如何在函数中传递两个参数?
我试过的:
function loadweek(loader,button){
var button_2 = button + "_2";
alert(button_2);
alert(button);
alert(loader);
}
$("#load_week").click(function () {
loadweek("#load_weekme","#load_week");
});
alert(loader);
正在工作,但按钮是“未定义”