jQuery和Windows 8 JavaScript Metro风格应用 [英] jQuery and Windows 8 JavaScript Metro Style Apps
问题描述
可以在使用JavaScript API开发的Windows 8 Metro风格应用中使用jQuery吗?我正在查看示例,并且有很多标准的DOM操作,例如document.getElementById
,addEventListener
等.我想使用jQuery来提高生产力.
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 document.getElementById
, addEventListener
, etc. I'd like to use jQuery for productivity.
推荐答案
$
不是魔术. jQuery只是一个javascript库.它应该运行正常.
The $
is not magic. jQuery is just a javascript library. It should run fine.
唯一可能不起作用的是cssHooks,它不会考虑其环境的任何怪癖".
The only thing that might not work are cssHooks which won't take into account any 'quirks' of their environment.
是的,它会起作用,如果,您相信Microsoft会产生符合HTML/CSS/JS规范的环境.
So yes, it will work, if you trust Microsoft to produce an environment that follows the HTML/CSS/JS specifications.
你感到幸运吗?
这篇关于jQuery和Windows 8 JavaScript Metro风格应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!