Last active
March 29, 2016 13:10
-
-
Save anonymous/3714d3fa70e6020f82f1 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/zicigo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script> | |
<script> | |
window.jQ142 = $; | |
$.noConflict(true); | |
</script> | |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script> | |
window.jQ171 = $; | |
$.noConflict(true); | |
window.$ = jQ142; | |
</script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.24/system.js"></script> | |
<script id="jsbin-javascript"> | |
System.config({ | |
meta: { | |
'//code.jquery.com/jquery-1.7.1.min.js': { | |
format: 'global' | |
} | |
} | |
}); | |
Promise.all([ | |
System.import('//code.jquery.com/jquery-1.7.1.min.js'), | |
System.import('//code.jquery.com/jquery-1.4.2.min.js') | |
]).then(function (jQs) { | |
var jQ171 = jQs[0]; | |
var jQ142 = jQs[1]; | |
console.log('1.7.1', jQ171); | |
console.log('1.7.1', jQuery); | |
console.log('1.7.1', $); | |
console.log('1.7.1', jQ171.fn.jquery); | |
//console.log('1.7.1', $.fn.jquery); | |
jQ171.noConflict(true); | |
console.log('1.7.1', jQ171); | |
console.log('1.7.1', jQuery); | |
console.log('1.7.1', $); | |
console.log('1.7.1', jQ171.fn.jquery); | |
//console.log('1.7.1', $.fn.jquery); | |
console.log('1.4.2', jQ142); | |
console.log('1.4.2', jQuery); | |
console.log('1.4.2', $); | |
console.log('1.4.2', jQ142.fn.jquery); | |
//console.log('1.4.2', $.fn.jquery); | |
jQ142.noConflict(true); | |
console.log('1.4.2', jQ142); | |
console.log('1.4.2', jQuery); | |
console.log('1.4.2', $); | |
console.log('1.4.2', jQ142.fn.jquery); | |
//console.log('1.4.2', $.fn.jquery); | |
}); | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="//code.jquery.com/jquery-1.4.2.min.js"><\/script> | |
<script> | |
window.jQ142 = $; | |
$.noConflict(true); | |
<\/script> | |
<script src="//code.jquery.com/jquery-1.7.1.min.js"><\/script> | |
<script> | |
window.jQ171 = $; | |
$.noConflict(true); | |
window.$ = jQ142; | |
<\/script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.24/system.js"><\/script> | |
</body> | |
</html></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.config({ | |
meta: { | |
'//code.jquery.com/jquery-1.7.1.min.js': { | |
format: 'global' | |
} | |
} | |
}); | |
Promise.all([ | |
System.import('//code.jquery.com/jquery-1.7.1.min.js'), | |
System.import('//code.jquery.com/jquery-1.4.2.min.js') | |
]).then(function (jQs) { | |
var jQ171 = jQs[0]; | |
var jQ142 = jQs[1]; | |
console.log('1.7.1', jQ171); | |
console.log('1.7.1', jQuery); | |
console.log('1.7.1', $); | |
console.log('1.7.1', jQ171.fn.jquery); | |
//console.log('1.7.1', $.fn.jquery); | |
jQ171.noConflict(true); | |
console.log('1.7.1', jQ171); | |
console.log('1.7.1', jQuery); | |
console.log('1.7.1', $); | |
console.log('1.7.1', jQ171.fn.jquery); | |
//console.log('1.7.1', $.fn.jquery); | |
console.log('1.4.2', jQ142); | |
console.log('1.4.2', jQuery); | |
console.log('1.4.2', $); | |
console.log('1.4.2', jQ142.fn.jquery); | |
//console.log('1.4.2', $.fn.jquery); | |
jQ142.noConflict(true); | |
console.log('1.4.2', jQ142); | |
console.log('1.4.2', jQuery); | |
console.log('1.4.2', $); | |
console.log('1.4.2', jQ142.fn.jquery); | |
//console.log('1.4.2', $.fn.jquery); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment