87,921
社区成员
发帖
与我相关
我的任务
分享
$(function(){
var temp="";
$("#sort").change(function(){
var temp = $(this).val();
});
console.log("我的值"+temp);
});
var temp = '';
$(function(){
$("#sort").change(function(){
temp = $(this).val();
});
});
function anotherFunc(){
console.log(temp);
}
$(function(){
var temp="";
$("#sort").change(function(){
temp = $(this).val();
aa();
});
function aa() {
console.log("我的值"+temp);
}
});