Jquery code for mobile nodes
Node movement is common in applications. The following is a good example of how to dynamically move a node to achieve a special effect.
The Code is as follows:
// Move the node
<! DOCTYPE html PUBLIC "-// W3C // dtd html 4.01 Transitional // EN" "http://www.w3.org/TR/html4/loose.dtd">
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8">
<Title> jquery5 </title>
<Script type = "text/javascript" src = "jquery-1.7.2.js"> </script>
<Script type = "text/javascript">
// Move the node
$ (Function (){
$ ("Ul li: eq (2)"). insertAfter ("ul li: eq (4 )");
});
</Script>
</Head>
<Body>
<P title = "hello world"> do you think the Shengsi garden training is good? </P>
<Ul>
<Li title = "1"> good </li>
<Li title = "2"> good </li>
<Li title = "3"> excellent </li>
<Li title = "4"> excellent </li>
<Li title = "5"> great </li>
<Li title = "6"> I cannot describe it </li>
</Ul>
</Body>
</Html>