jQuery and Windows 8 JavaScript Metro Style Apps

前端 未结 9 1403
小蘑菇
小蘑菇 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:51

    JQuery should work fine but bear in mind there is some built in functionality for doing this kind of thing, in the case of your example:

    WinJS.Utilities.query("#someId li")
         .listen("click", function (result) {
    

    Query Collection Documentation

提交回复
热议问题