我有以下代码行:
select: function( event, ui ) {
var searchLink = aToolLinks[ui.item.tool];
var params = "";
if (ui.item.id && ui.item.id != "") {
if (ui.item.tool == "FUN") {
params = "ID_INSTRUMENT=" + ui.item.id;
} else {
params = "ID_NOTATION=" + ui.item.id;
}
} else if (ui.item.isin && ui.item.isin != "") {
params = "isin=" + ui.item.isin;
}
if (ui.item.tool && ui.item.tool == "NEW") {
params = "searchString=" + ui.item.term;
}
if (params != "") {
console.log("URL " + searchLink+"&"+params);
window.location.href = searchLink+"&"+params;
在 Internet Explorer 8 中,我收到错误:item.tool is NULL or is not an object
有人知道我该如何解决吗?
谢谢!