对此有何建议?我有这个语法错误?我可以尝试使管理员可编辑列表工作的任何替代方案?谢谢你,Rads
<a href="#" id="amenities" data-type="checklist" data-pk="1" data-url="/post" data- title="Select amenities"></a>
<script>
$(function(){
$('#amenities').editable({
value: [2, 3, 4],
source: [
{value: 1, text: 'Internet'},
{value: 2, text: 'Full Kitchen'},
{value: 3, text: 'Big screen TV'}
{value: 4, text: 'Business Center'}
]
});
});
</script>
答案 0 :(得分:0)
您的语法错误是您在以下结尾处遗漏了逗号:
{value: 3, text: 'Big screen TV'}
尝试添加一个,看看会发生什么?