weixin_33738578 2013-11-23 14:55 采纳率: 0%
浏览 341


I have a json object that is being used here

var tagApi = jQuery(".tm-input").tagsManager({
      prefilled: ["Angola", "Laos", "Nepal"]

      name: 'SEARCHVAR',
      limit: 3,
      prefetch: '../_realRETS/php/search/all.jsonp'
    }).on('typeahead:selected', function (e, d) {

      tagApi.tagsManager("pushTag", d.value);


The file Contents of the Json File look as such...


However I get an error because of the single quotation... and have tried the following methods, please note if my methods "Should work" I would like to know about it regardless.

I've tried escaping the quote by using ["test\'s"] and also by using html encoding, however the encoding works, it shows up in the tag with the acctual encode text rather then the character.

Please help understand how I could use single quotes in this plugin.

  • 写回答

0条回答 默认 最新



    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!