如何在JavaScript中建立空值字串?
要在JavaScript中建立空的字串,你可以嘗試執行以下程式碼 −
示例
<html> <head> <script> var val; val = ""; document.write("Value: "+val); document.write("<br>Type: "+typeof val); </script> </head> <body> </body> </html>
廣告
要在JavaScript中建立空的字串,你可以嘗試執行以下程式碼 −
<html> <head> <script> var val; val = ""; document.write("Value: "+val); document.write("<br>Type: "+typeof val); </script> </head> <body> </body> </html>