質問

How can I change Url for ajax response for children?

E.g. I have

onLazyRead: function (node) {
          $.ajax({
            url: "http://google.com"
            ...
})

and load any children. I want by clicking on children click also load by ajax, but from another action, not from "http://google.com". How can I change it for children nodes?

役に立ちましたか?

解決

you can add url (or whatever you want) property to your child nodes and use as

onLazyRead: function (node) {
          $.ajax({
            url: node.data.url
            ...
})
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top