0
我收到错误 - 类型错误:updateAPI不是功能N我不知道为什么会这样得到类型错误时调用函数
该函数的代码如下
var APIS = '<?=preg_replace("/'/", "\'", json_encode($apis))?>';
var APISP = $.parseJSON(APIS);
var changedTo = 'left';
var updateAPI = function(id)
{
/* Function Statements */
};
代码通过我称这个功能为
window.setInterval(function() {
var ele = document.getElementById('itemSelector');
updateAPI((ele.options[ele.selectedIndex].id).replace(/[_\D]+/, ''));
}, 100);
任何人都可以帮忙吗?提前致谢。
这个工作感谢.. – Jayendra