loading jquery twice causes an error?

前端 未结 3 2051
慢半拍i
慢半拍i 2020-12-01 14:42

I have a page where jquery + other js\'s is being loaded:

         


        
3条回答
  •  盖世英雄少女心
    2020-12-01 15:21

    Using an iframe will cause JQuery to load twice if you
    1) load JQuery for each page (i.e. in Ruby on Rails via application.html.erb) and
    2) the iframe is also a page from your application rather than an iframe of an external site.

提交回复
热议问题