我正在使用 jQuery 我想发送一个自定义查询字符串参数以及 node_id,例如 json 中的 _type,如下所示
[{
"id":"2",
"label":"Title for folder",
"branch":[],
"inode":true,
"open":false,
"icon":"folder",
"_type":"library"
}]
我正在尝试ajaxhook
如下所示
ajaxHook: function (item, settings) {
// the default implementation changes the URL by adding the item ID at the end
alert(this.itemData._type);
settings.url += (item ? this.getId(item) : '');
}
我无法_type
使用此方法获取我的自定义属性。