var jQ = jQuery.YYY();
jQ( function() {
jQ("a").click(function() {
// some code
});
});
You need to use new alias for jQuery with name jQ. What should you insert into code instead of YYY?
You seem to misunderstand noConflict() or your question is poorly worded. var jQ = jQuery; works without the .noConflict(); Your question should read: 'You needto to use another alias for jQuery other than $ because another library is using '$'. You want your new alias to be 'jQ'. What method should you insert into code instead of YYY to remove jQuery's '$' alias before using jQ in the remaining code?
2016 Jun 18, 12:04:50 AM
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати