jQuery and Windows 8 JavaScript Metro Style Apps

前端 未结 9 1376
小蘑菇
小蘑菇 2021-02-02 11:31

Can jQuery be used in Windows 8 Metro-style apps developed using the JavaScript API? I\'m looking at the samples, and there\'s a lot of standard DOM manipulation like doc

9条回答
  •  礼貌的吻别
    2021-02-02 11:45

    As with all third party JavaScript libraries there are a couple of things you should keep in mind.

    • Always try to include the .js sourcefile in your project when possible. Calling out to a CDN or external hosted location will flag you for some security checks you wouldn't normally have to go through.
    • I have used a couple of jQuery versions in coding my own apps. Some of them broke so keep in mind there is still no guarantee. Other libraries, like SoundJS, I used older versions that I know do work.
    • If you are looking for some examples of third party libraries I have some posts on Knockout and Upshot here:
    • http://blogs.msdn.com/b/davedev/archive/2012/05/02/connecting-to-wcf-ria-services-in-a-windows-8-metro-style-app-using-upshot-js-and-kockout-js.aspx

    I have also written a free Windows Store Gaming Kit that uses third party libraries you can grab the free source for that here: http://win8gamekit.codeplex.com

提交回复
热议问题