<div class="codetitle"> <span><a style="CURSOR: pointer" data="12788" class="copybut" id="copybut12788" onclick="doCopy('code12788')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code12788"> <br><title>Untitled Document</title> <br> <script language="javascript" type="text/javascript"> <br>//eval(vable) can parse the corresponding string into JS code and run it: you can treat a string as a JavaScript Expression to execute it. <br>function Eval1(){ <br>alert("Eval1"); <br>} <br>function Eval2(){ <br>alert("Eval2"); <br>} <br><br> function Alert(funName){ <br>//When funName is Eval1, the Eval1() function can be executed through the eval function, and the same is true for Eval2 <br>eval(funName "()"); <br>} <br>< ;/script> <br></head> <br><body> <br><input type="button" onclick="Alert('Eval2')" value="Alert" /> -- -------Eval2 will pop up <br></body> <br></html> <br> </div> <br>The Eval() function is too powerful and exciting, please post it first ,,continue reading. . . ,