I have initialized window.jQuery = jQuery; now, i want to add some prototype functions with different jQueries, like
var a = window.jQuery;
var b = window.jQuery;
a.fn.helloWorld = () => 1;
b.fn.helloWorld = () => 2;
console.log(a.fn.helloWorld()); // 2
console.log(a.fn.helloWorld()); // 2
In this case, when i use noConflict from a variable, then b has undefined then, how can i use jquery for this case?
I have initialized window.jQuery = jQuery; now, i want to add some prototype functions with different jQueries, like
var a = window.jQuery;var b = window.jQuery;a.fn.helloWorld = () => 1;b.fn.helloWorld = () => 2;console.log(a.fn.helloWorld()); // 2console.log(a.fn.helloWorld()); // 2In this case, when i use
noConflictfromavariable, thenbhas undefined then, how can i use jquery for this case?