js
if(licenseno1!=''){
condition = condition+ ',licenseno=' + licenseno1;
alert(condition);
}
我想 alert 中显示 假如licenseno的值是123
alert 显示 licenseno="123"
[解决办法]
var condition = '';
condition?=?condition+?',licenseno='?+?licenseno1;
if (licenseno == '123') {
alert('licenseno='?+?licenseno1);
} else {
alert('condition=' + condition);
}