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