As shown below:
function setName(obj) { = "ccccccc"; } function aa() { var name = new String("hechangmin"); = "sdf"; //The first method // = "aaaaa"; //The second way alert(); // aaaaa setName(name); alert(); // ccccccc }
The two ways of quoting js strings (must read) in the above article are all the content I share with you. I hope you can give you a reference and I hope you can support me more.