问题
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