The custom function parameters are passed in string format and the transmission method is
1: Pass this with
2: Quotes are defaulted
3: Escape characters (" in HTML represents "double quotation mark, ' represents single quotation mark, in JavaScript directly "" and Java universal escape character set)
<html> <head> <script language="LiveScript"> function print(arg){ alert("你好!"+arg); } </script> </head> <body> <form> <input type="button" name="Button1" value="first" onclick="print(this.str)" str="你好one"> <br><br> <input type="button" name="button2" value="second" onclick=print("你好two")> <br><br> <input type="button" name="button3" value="Third" onclick="print ("你好three")"> </form> </body> </html>