jQuery विविध noConflict () विधि
उदाहरण
JQuery चर के लिए एक नया नाम निर्दिष्ट करने के लिए noConflict() विधि का उपयोग करें:
var jq = $.noConflict();
परिभाषा और उपयोग
NoConflict () विधि jQuery के $ चर के नियंत्रण को जारी करती है।
इस विधि का उपयोग jQuery चर के लिए एक नया कस्टम नाम निर्दिष्ट करने के लिए भी किया जा सकता है।
युक्ति: यह विधि तब उपयोगी होती है जब अन्य जावास्क्रिप्ट पुस्तकालय अपने कार्यों के लिए $ का उपयोग करते हैं।
वाक्य - विन्यास
$.noConflict(removeAll)
Parameter | Description |
---|---|
removeAll | Optional. A Boolean value that specifies whether or not to release jQuery's control of ALL jQuery variables (including "jQuery") |