我可以在jsTree ajax调用中指定dataType吗? [英] Can I specify dataType in jsTree ajax call?

查看:60
本文介绍了我可以在jsTree ajax调用中指定dataType吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在进行jsTree ajax调用时,我需要指定 dataType:'jsonp'

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

我可以这样做吗?我在 jsTree网站上找不到任何内容。

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

推荐答案

是的,你可以。怎么样,它只是简单的dataType:jsonp。您可以指定此示例

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

将帮助您了解jquery如何处理jsonp。

This will help you understand how jquery handles jsonp.

这篇关于我可以在jsTree ajax调用中指定dataType吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆