Does jQuery work well with Polymer 2?

强颜欢笑 提交于 2019-12-04 05:42:10

问题


There are many mixed answers. But they're all answers from a few years ago and relating to Polymer 1.

Thanks.


回答1:


It does work but it won´t work well. Have a look this. The only way jquery and polymer work well togehter is polymer 1 and shady dom but thats deprecated.




回答2:


The question can be interpreted in two ways - can legacy jquery code create polymer components/custom tags?

The answer is YES.

The other interpretation is - can I use jquery INSIDE my web components?

The answer is "maybe, but its a really bad idea, don't do it".



来源:https://stackoverflow.com/questions/45338428/does-jquery-work-well-with-polymer-2

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