javascript - Call Jquery library only for specific tasks -
i'm scraping news website php , injecting jquery library in head, along own script depends on jquery. have experienced loss of functionality regarding websites. wondering if possible make jquery library function script , not "assimilating" other scripts on page.
i have googled can find jquery noconflict() doesn't job done.
jquery noconflict way go remember need name no conflict copy , use copy of jquery code:
var $j = jquery.noconflict(); // $j alias jquery function; creating new alias optional. $j(document).ready(function() { $j( "div" ).hide(); }); see more here: http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/
Comments
Post a Comment