请帮忙。变量如何传递?我有功能选择选项jQuery变量如何通过?
例 的jQuery: -
var one = '1';
var two = '2';
$(document).ready(function(){
$(#).change(function(){
if(one == '1'){
var one = 'hello';
}
});
$(#).change(function(){
if(two == '2'){
var two = 'world!';
}
});
if (one =='hello' && two =='world!'){
$(#welcome).hmtl("hello world!")
}
});
你可能想澄清你的问题,我不是很确定你是问什么。 –