Hi in my ruby on rails application I am using a javascript player inside
$(document).ready(function(){ }
and now I want is to use a carousel slider javascript in same page, but the js slider not working until I remove the player javascript If I remove the player.js or just remove the $(document).ready(function(){} lines the slider works but the player wont works , what causes the problem ?
I am using player.js as separate javascript file and slider.js as inline is this cause any problem?
您是否考虑过正确关闭.ready函数?
尝试在包含player.js及其代码之前放置js滑块代码。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.