简体   繁体   English

将jQuery代码转换为Javascript等效工具/软件包?

[英]Tool/Package to convert jQuery code to Javascript equivalent?

Is there some tool or package that can convert jQuery code into its vanilla JavaScript equivalent. 是否有一些工具或程序包可以将jQuery代码转换为其等效的JavaScript。 I have built a webpage using jQuery but now I want to transition towards plain JavaScript to improve loading time, I could do it manually but it would take a lot of time and effort. 我已经使用jQuery构建了一个网页,但是现在我想过渡到纯JavaScript来缩短加载时间,我可以手动完成此操作,但这会花费很多时间和精力。

Jquery is vanilla javascript. jQuery是香草javascript。 Object oriented code that helps you build applications faster. 面向对象的代码可帮助您更快地构建应用程序。 From your question I can understand that there is not mutch jq there. 从您的问题中我可以理解那里没有mutch jq。 If you are considering page load and jquery first you should check different suspects: code quality. 如果首先考虑页面加载和jquery,则应检查其他可疑对象:代码质量。 Rewriting bad jq code into bad js code will not change the page load 将错误的jq代码重写为错误的js代码不会改变页面加载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM