Stringsetting.async.type
概述[ 依赖 jquery.ztree.core 核心 js ]
Ajax 的 http 请求模式。[setting.async.enable = true 时生效]
默认值:"post"
String 格式说明
type = "post" 表示异步加载采用 post 方法请求
type = "get" 表示异步加载采用 get 方法请求
对应于 jQuery ajax 中的 type 参数
setting 举例
1. 设置使用 get 方式请求数据
var setting = {
async: {
enable: true,
type: "get",
url: "http://host/getNode.php",
autoParam: ["id", "name"]
}
};
......