开发者

Is there a way to update the dojo tree item id with the id come from database?

开发者 https://www.devze.com 2022-12-17 03:52 出处:网络
I have a dojo tree that its nodes are created temporary in 开发者_如何学Cmemory. I assigned every new node an id by timestamp like this:

I have a dojo tree that its nodes are created temporary in 开发者_如何学Cmemory. I assigned every new node an id by timestamp like this: var newID = new Date().getTime(). This new node will associate with a form to control its info. My expected is: when the form is submit, the new id came from the database will replace the timestamp id above. How can I do this?

Thanks!!!

0

精彩评论

暂无评论...
验证码 换一张
取 消