escape double quotes javascript

前端 未结 1 710
误落风尘
误落风尘 2021-01-29 10:38

I\'m trying to run a certain image format when viewed on iphone and some flash video when otherwise

var uagent = navigator.userAgent.toLowerCase();

 if (uagent.         


        
1条回答
  •  -上瘾入骨i
    2021-01-29 11:14

    Why are those attributes lacking in ""? You know you can use single quotes like:

    document.write('');
    

    0 讨论(0)
提交回复
热议问题