0
我想自動填充我的json url
中的兩列。json自動完成兩個字段
這裏是我的腳本:
<script>
var options = {
url: "all.json",
getValue: "code",
list: {
match: {
enabled: false
}
},
};
$("#data-categories").easyAutocomplete(options);
</script>
自動完成工程爲代碼僅列。我想要自動完成name
和code
列。這是我如何添加多列。
總之,json url
示例代碼是這樣的:
[{"code":"2GO","market":"","name":"2GO Group Inc","codeName":"","sector":"Industrials","subIndustry":"Marine Shipping","pseID":null,"pseSecID":null,"industy":"Transportation & Logistics"}]
請幫我解決這個問題。
謝謝。
你可以給你的代碼.. –