Home >Web Front-end >JS Tutorial >Move node between two divs using ztree_javascript skills

Move node between two divs using ztree_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:40:591166browse

Implementation ideas:

1. The nodes in ztree use a json Array as the data source, so the json string is directly manipulated and then converted into a json object array.

2. Then re-initialize the ztree object with the newly formed json array object.

Copy code The code is as follows:






html代码:

复制代码 代码如下:



   

       

       

           
           
           
       

           

         


      Statement:
      The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn