如下:IE FireFox 下不兼容 window.event
$(
'input[name=context]'
).bind(
'input propertychange'
,
function
(e){
if (window.event.propertyName !=
"value" && window.event.propertyName !=
undefined) {
return;
}
$( "#button").click();
});
return;
}
$( "#button").click();
});
更改:
$(
'input[name=context]').bind(
'input propertychange',
function(e){
var evt = e || window.event;
if (evt.propertyName != "value" && evt.propertyName != undefined) {
return;
}
$( "#button").click();
});
var evt = e || window.event;
if (evt.propertyName != "value" && evt.propertyName != undefined) {
return;
}
$( "#button").click();
});