Can I specify dataType in jsTree ajax call?

非 Y 不嫁゛ 提交于 2020-01-15 05:04:09

问题


I need to specify dataType: 'jsonp' when making jsTree ajax call.

Can I do that? I didn't find anything in jsTree site.


回答1:


Yes you can. How, its just plain dataType: "jsonp". You can specify a callback as specified in this example.

This will help you understand how jquery handles jsonp.




回答2:


As far I can see, jsTree manual states that ajax config object is the same as jQuery so dataType property should work just fine.



来源:https://stackoverflow.com/questions/7224928/can-i-specify-datatype-in-jstree-ajax-call

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!