如何在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>