I'm trying to test if there would be any conflicts with changing the version of jQuery on an online website but don't have access to the source currently.

Is there any way to replace jQuery on-the-fly? I.e. with Firebug or Chrome Dev Tools?

有帮助吗?

解决方案

You can replace the jQuery on the page temporarily by another version. To do so just execute include("jquery") within Firebug's Command Line. This will add the latest version of jQuery.

Though note that this only replaces the version on the client side, the server source stays untouched. Devtools like Firebug and the Chrome DevTools work on the client side and don't have access to the server file structure.

其他提示

I'd try some sort of /etc/hosts/ hosts.ini change where on your local machine

//hostedloc/jquery/jquery.js

Now effectively points to your own version of the file.

NO you can not , if you change it using firebug and Chrome Dev Tools you only see the difference in the current time when you refresh the page you will lose every changes you made

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top