문제

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