js拼接字符串时转义字符的妙用

οnclick="demoTop("字符串",this)"

js拼接的方式:

οnclick='demoTop(""+data.data[i].id+"",this)'

你可能感兴趣的:(js拼接字符串时转义字符的妙用)