jQuery DOM Operation node Transfer replication$ (' div '). Append ($ (' P '))This moves the P tag to the div tag.$ (' div '). Append ($ (' P '). HTML ())is to copy the contents of the P tag into the div tag .$ (' div '). Append ($ (' P '). Clone (True))is to copy one into the div tag, the original label still retains$ (function () {
$ (". Nm_ul li"). Click (function () {/// when the clone parameter is set to True, you can also copy the event bound by the button to the New button on the $ (this). Clone (True). AppendTo (". Nm_ul"); Copy the node that is currently clicked and append it to the <ul> element})
});
A parameter true is passed in the Clone () method, meaning that the event that is bound in the element is copied while copying the element. Therefore, a copy of this element also has a copy function. If you do not want the event to be copied, you can write:$ (' div '). Append ($ (' P '). Clone ())Move one node on the page to another place using the internal and external insertion method of JQ (Append,appendto,prepend,prependto,after,before,insertafter,insertbefore), You can move the $ ("button") by simply passing the selected node in. Click (function () {
$ (this). AppendTo ($ ("#box"));//or Append $ ("#box"). Append (this);
});
Eclipse shortcut key conflicts with SystemCtrl+alt+down key default is Lenovo notebook graphics screen rollover occupy, in Eclipse does not work, in the settings to disable the video card shortcut key or not, and later the video card screen flip shortcut to modify the other to disable it.
ztree3.5.02 selected node times wrongAfter updating the jquery version, using jquery1.1.1, left click on the tree node when the error, although does not affect the display, but in the Chrome console display error uncaught typeerror:cannot Read Property ' NodeName ' of undefined jquery.ztree.core-3.5.js:614 reason: srcelement is not standard, does not conform to the standards, so in jquery 1.9 completely removed this property will code in the var n = E.srcelement.nodename.tolowercase (); replace with var n = e.originalevent.srcelement.nodename.tolowercase (); Replace with the zTree3.5.16 version after normal.
Eclipse sogou Pinyin Input method always become the traditionalIME Settings-Modify Cancel simple traditional Toggle shortcut key: Ctrl+shift+f
From for notes (Wiz)
JQuery DOM Operation node Transfer replication