jQuery
jQuery
jQuery.
ajax
()
基於
XHR
開發
然而XHR架構不清晰,並已有替代方案
jQuery整體項目太大,效益低落
code:javascript
var result = $(".result");
$.ajax({
url: "
https://randomuser.me/api/",
dataType: "json",
success: function (data) {
result.html(data.results
0
.email);
},
});
擴充功能
hoverIntent jQuery Plugin
hilios/jQuery.countdown: The Final Countdown plugin for jQuery
rstacruz/jquery.transit: Super-smooth CSS3 transformations and transitions for jQuery
bookmarklet
Inject jQuery
$ javascript:(function(e,s){e.src=s;e.onload=function(){jQuery.noConflict();$=jQuery;console.log('jQuery injected')};document.head.appendChild(e);})(document.createElement('script'),'
https://code.jquery.com/jquery-latest.min.js')