How does jQuery mobile work in jsfiddle.net?

ぃ、小莉子 提交于 2019-12-01 03:53:58

问题


I have this simple fiddle, which uses jQuery mobile, but it's not working.

Q: What am I missing?


回答1:


Under Manage Resources you need to add the jQM css file as well:

  • http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css

Optionally you can also add the jQM framework as well, but I see that jsFiddle is adding this as an option now

  • http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js

Live Example:

  • http://jsfiddle.net/phillpafford/wvVmT/2/


来源:https://stackoverflow.com/questions/7045893/how-does-jquery-mobile-work-in-jsfiddle-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!