add javascript into a html page with jquery

后端 未结 3 1155
天涯浪人
天涯浪人 2020-12-03 23:55

I want to add a javascript google ad but I can\'t insert the javascript into the div using jquery. I try to simulate my problem with this test, which is using some advice I

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 00:40

    You cannot use document.write after the page has finished loading. Instead, simply insert the contents that you want to be written in.

    
    

提交回复
热议问题