escape double quotes javascript

前端 未结 1 707
误落风尘
误落风尘 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条回答
  • 2021-01-29 11:14

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

    document.write('<img src="bc-1300119669-722.gif" />');
    
    0 讨论(0)
提交回复
热议问题