var str = "";
或者下面写法
var str = “” ;
这里使用了\”进行转义,还有一点注意的是传参必须加上引号,因为不加引号传参会被默认识别为Number类型,如果是字符串类型的参数传入就会报错,这也是我们生产服务器出现的错误。
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/206524.html原文链接:https://javaforall.net
js转义字符的使用varstr ahref javascript sendtoDay dateRow dueCode dateRow interestCode dateRow accountCode 或者下面写法 varstr ahref javascript sendtoDay dateRow dueCode dateRow interestCode dateRow accountCode
var str = "";
或者下面写法
var str = “” ;
这里使用了\”进行转义,还有一点注意的是传参必须加上引号,因为不加引号传参会被默认识别为Number类型,如果是字符串类型的参数传入就会报错,这也是我们生产服务器出现的错误。
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/206524.html原文链接:https://javaforall.net