我有一個自動完成控件,當我的自定義數據源渲染第一組自動完成的「建議」時工作。 我有一個機制,檢測何時滾動在最底部,在這種情況下,其他數據加載並附加到自動完成UL元素。 // This loads more data when scroll bar reaches the bottom of autocomplete suggestion list.
$(".autocomplete ul", $
我嘗試使用jQuery自動完成,我得到這個錯誤: Uncaught SyntaxError: Unexpected token < in JSON at position 2
我的代碼是這樣的,HTML: <div id="fastSearchBox" class="fastSearchBox">
<span style="direction: rtl; float: right