jQuery Name Conflicts
jQuery uses the $ sign as a shortcut for jQuery.
Some other JavaScript libraries also use the dollar sign for their functions.
The jQuery noConflict() method specifies a custom name (like jq), instead of using the dollar sign.
<script type="text/javascript">
var jq=jQuery.noConflict(); jq(document).ready(function(){
jq("button").click(function(){
jq("p").hide();
});
});
</script>
Some other JavaScript libraries also use the dollar sign for their functions.
The jQuery noConflict() method specifies a custom name (like jq), instead of using the dollar sign.
<script type="text/javascript">
var jq=jQuery.noConflict(); jq(document).ready(function(){
jq("button").click(function(){
jq("p").hide();
});
});
</script>
댓글
댓글 쓰기
질문이나 의견은 요기에 남겨주세요 ^^,,