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
Release: 2016-05-16 17:40:59
Original
1165 people have browsed it

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代码:

复制代码 代码如下:



   

       

       

           
           
           
       

           

         


      Related labels:
      source:php.cn
      Statement of this Website
      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
      Popular Tutorials
      More>
      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template