カスタム関数パラメーターは文字列形式に渡され、渡す方法
1:これを使用して渡します
2:引用符のデフォルト
3:エスケープキャラクター(HTMLは「double Quotes」の略で、単一の引用符、direct /"の略です。
<html> <head> <スクリプト言語= "livescript"> function print(arg){alert( "hello!"+arg); } </script> </head> <body> <form> <入力タイプ= "button" name = "button1" value = "first" onclick = "print(this.str)" str = "hello one"> <br> <br> <br> <inputタイプ= "name" name = "button2" button2 "value =" second "onclick = print(" hello two ") onclick = "print(" hello three ")"> </form> </body> </html>