jQuery 中ajax异步调用的四种方式_jquery_脚本之家

作者:运维知识    发布时间:2019-12-11 14:19     浏览次数 :

[返回]
$.ready{ //Jquery 页面加载事件,当页面加载之后首先执行这个方法 //第一种Ajax请求 $.ajax({ type:"GET", //请求类型,有get,post等类型,和表单提交是一样的 url:"Result.aspx", //请求处理的页面,就是说由那个页面捕获请求,同样这个路径可以换成ashx,一般处理程序 data: "name=John&location=Boston", //传递参数,实在就是(Result.aspx?name=John&loaciton=Boston) success:function{ //请求成功会由这个方法处理,其中请求成功返回值由msg接收 $; } }); //第二种请求 $.get( //用get请求方式,其实就是上一种的变体 "Handler.ashx", {name:"笨笨熊",sex:"女"}, //要传递的参数,解析为(Handler.ashx?name=笨笨熊&sex=女) function{ //请求返回参数 $; } ); //第三种请求 $.post( //这种请求的上一种是一样的,只是请求方式不同 "Handler2.ashx", {name:"benben 笨笨熊",sex:"女"}, function.text; //第四种请求 $.getJSON( //这种是用JSON 实现的,JSON是一种通用的数据格式 "Handler3.ashx", //路径 {name:"aaa"}, //传递参数 function { //回调处理函数 返回的就是json数据格式,由data接收这串数据 var str=""; //下面就是解析这些数据,具体接送的使用但不做考虑,设计内容很多,一时无法讲解 str+="姓名:"+data.name+"<br/>"; str+="性别:"+data.sex+"<br/>"; str+="地址:"+data.address+"<br/>"; $; } );});

其中有些已经无法访问,或许是文件移除,或许是被封锁。大家分享的东西,没什么特别的可说的,唯有感谢无私分享的人们。提醒大家在使用的时候注意jQuery包的版本问题,最好是使用相同的版本,因为使用了高版本很有可能出现或多或少的问题。并且其中英文插件在转换成中文时注意编码,推荐utf-8。jQuery插件-文件上传Ajax File Upload.jQUploader.Multiple File Upload plugin.jQuery File Style.Styling an input type file.Progress Bar Plugin.jQuery插件-表单验证jQuery Validation.Auto Help.Simple jQuery form validation.jQuery XAV – form validations.jQuery AlphaNumeric.Masked Input.TypeWatch Plugin.Text limiter for form fields.Ajax Username Check with jQuery.jQuery插件-表单-选取框(Form – Select Box stuff)jQuery Combobox.jQuery controlled dependent Select List.Multiple Selects.Select box manipulation.Select Combo Plugin.jQuery – LinkedSelectAuto-populate multiple select boxes.Choose Plugin .jQuery插件-表单基本、输入框、选择框等(Form Basics, Input Fields, Checkboxes etc.)jQuery Form Plugin.jQuery-Form.jLook Nice Forms.jNice.Ping Plugin.Toggle Form Text.ToggleVal.jQuery Field Plugin.jQuery Form'n Field plugin.jQuery Checkbox manipulation.jTagging.jQuery labelcheck.Overlabel.3 state radio buttons.ShiftCheckbox jQuery Plugin.Watermark Input.jQuery Checkbox (checkboxes with imags).jQuery SpinButton Control.jQuery Ajax Form Builder.jQuery Focus Fields.jQuery Time Entry.jQuery插件-时间、日期和颜色选取(Time, Date and Color Picker)jQuery UI Datepicker.jQuery date picker plugin.jQuery Time Picker.Time Picker.ClickPick.TimePicker.Farbtastic jQuery Color Picker Plugin.Color Picker by intelliance.fr.jQuery插件-投票插件jQuery Star Rating Plugin.jQuery Star Rater.Content rater with asp.net, ajax and jQuery.Half-Star Rating Plugin.jQuery插件-搜索插件jQuery Suggest.jQuery Autocomplete.jQuery Autocomplete Mod.jQuery Autocomplete by AjaxDaddy.jQuery Autocomplete Plugin with HTML formatting.jQuery Autocompleter.AutoCompleter (Tutorial with PHPMySQL).quick Search jQuery Plugin.jQuery插件-编辑器jTagEditor.WYMeditor.jQuery jFrame.Jeditable – edit in place plugin for jQuery.jQuery editable.jQuery Disable Text Select Plugin.Edit in Place with Ajax using jQuery.jQuery Plugin – Another In-Place Editor.TableEditor.tEditable – in place table editing for jQuery.jQuery插件-多媒体、视频、Flash等(Audio, Video, Flash, SVG, etc)jMedia – accessible multi-media embedding.JBEdit – Ajax online Video Editor.jQuery MP3 Plugin.jQuery Media Plugin.jQuery Flash Plugin.Embed QuickTime.SVG Integration.jQuery插件-图片(Photos/Images/Galleries)ThickBox.jQuery lightBox plugin.jQuery Image Strip.jQuery slideViewer.jQuery jqGalScroll 2.0.jQuery – jqGalViewII.jQuery – jqGalViewIII.jQuery Photo Slider.jQuery Thumbs – easily create thumbnails.jQuery jQIR Image Replacement.jCarousel Lite.jQPanView.jCarousel.Interface Imagebox.Image Gallery using jQuery, Interface Reflactions.simple jQuery Gallery.jQuery Gallery Module.EO Gallery.jQuery ScrollShow.jQuery Cycle Plugin.jQuery Flickr.jQuery Lazy Load Images Plugin.Zoomi – Zoomable Thumbnails.jQuery Crop – crop any image on the fly.Image Reflection.jQuery插件-Google地图jQuery Plugin googlemaps.jMaps jQuery Maps Framework.jQmaps.jQuery Google Maps.jQuery Maps Interface forr Google and Yahoo maps.jQuery J Maps – by Tane Piper.jQuery插件-游戏Tetris with jQuery.jQuery Chess.Mad Libs Word Game.jQuery Puzzle.jQuery Solar System (not a game but awesome jQuery Stuff).jQuery插件-表格等UI/Tablesorter.jQuery ingrid.jQuery Grid Plugin.Table Filter – awesome!.TableEditor.jQuery Tree Tables.Expandable “Detail” Table Rows.Sortable Table ColdFusion Costum Tag with jQuery UI.jQuery Bubble.TableSorter.Scrollable HTML Table.jQuery column Manager Plugin.jQuery tableHover Plugin.jQuery columnHover Plugin.jQuery Grid.TableSorter plugin for jQuery.tEditable – in place table editing for jQuery.jQuery charToTable Plugin.jQuery Grid Column Sizing.jQuery Grid Row Sizing.jQuery插件-统计图(Charts, Presentation etc.)jQuery Wizard Plugin .jQuery Chart Plugin.Bar Chart.jQuery插件-边框、圆角、背景(Border, Corners, Background)jQuery Corner.jQuery Curvy Corner.Nifty jQuery Corner.Transparent Corners.jQuery Corner Gallery.Gradient Plugin.jQuery插件-文字和超链接jQuery Spoiler plugin.Text Highlighting.Disable Text Select Plugin.jQuery Newsticker.Auto line-height Plugin.Textgrad – a text gradient plugin.LinkLook – a link thumbnail preview.pager jQuery Plugin.shortKeys jQuery Plugin.jQuery Biggerlink.jQuery Ajax Link Checker.jQuery插件-鼠标提示jQuery Plugin – Tooltip.jTip – The jQuery Tool Tip.clueTip.BetterTip.Flash Tooltips using jQuery.ToolTip.jQuery插件-菜单和导航jQuery Tabs Plugin – awesome! . [雷火电竞app,demo nested tabs.]电竞外围,another jQuery nested Tab Set example (based on jQuery Tabs Plugin).jQuery idTabs.jdMenu – Hierarchical Menu Plugin for jQuery.jQuery SuckerFish Style.jQuery Plugin Treeview.treeView Basic.FastFind Menu.Sliding Menu.Lava Lamp jQuery Menu.jQuery iconDock.jVariations Control Panel.ContextMenu plugin.clickMenu.CSS Dock Menu.jQuery Pop-up Menu Tutorial.Sliding Menu., Slide and Toggle stuff)jQuery Plugin Accordion.jQuery Accordion Plugin Horizontal Way.haccordion – a simple horizontal accordion plugin for jQuery.Horizontal Accordion by portalzine.de.HoverAccordion.Accordion Example from fmarcia.info.jQuery Accordion Example.jQuery Demo – Expandable Sidebar Menu.Sliding Panels for jQuery.jQuery ToggleElements.Coda Slider.jCarousel.Accesible News Slider Plugin.Showing and Hiding code Examples.jQuery Easing Plugin.jQuery Portlets.AutoScroll.Innerfade.jQuery插件-拖放插件UI/Draggables.EasyDrag jQuery Plugin.jQuery Portlets.jqDnR – drag, drop resize.Drag Demos.jQuery插件-XML XSL JSON FeedsXSLT Plugin.jQuery Ajax call and result XML parsing.xmlObjectifier – Converts XML DOM to JSON.jQuery XSL Transform.jQuery Taconite – multiple Dom updates.RSS/ATOM Feed Parser Plugin.jQuery Google Feed Plugin.jQuery插件-浏览器Wresize – IE Resize event Fix Plugin.jQuery ifixpng.jQuery pngFix.Link Scrubber – removes the dotted line onfocus from links.jQuery Perciformes – the entire suckerfish familly under one roof.Background Iframe.QinIE – for proper display of Q tags in IE.jQuery Accessibility Plugin.jQuery MouseWheel Plugin.jQuery插件-对话框、确认窗口(Alert, Prompt, Confirm Windows)jQuery Impromptu.jQuery Confirm Plugin.jqModal.SimpleModal.jQuery插件-CSSjQuery Style Switcher.JSS – Javascript StyleSheets.jQuery Rule – creation/manipulation of CSS Rules.jPrintArea.jQuery插件-DOM、AJAX和其它JQuery插件(DOM, Ajax and other jQuery plugins)FlyDOM.jQuery Dimenion Plugin.jQuery Loggin.Metadata – extract metadata from classes, attributes, elements.Super-tiny Client-Side Include Javascript jQuery Plugin.Undo Made Easy with Ajax.JHeartbeat – periodically poll the server.Lazy Load Plugin.Live Query.jQuery Timers.jQuery Share it – display social bookmarking icons.jQuery serverCookieJar.jQuery autoSave.jQuery Puffer.jQuery iFrame Plugin.Cookie Plugin for jQuery.jQuery Spy – awesome plugin.Effect Delay Trick.jQuick – a quick tag creator for jQuery.Metaobjects.elementReady.

海量的jQuery插件帖,很经典,不知道什么时候开始流传,很早以前就收藏过,为了工作方便还是发了一份放在日志里面。

电竞竞猜网站排行,以上就是本文的全部内容,了解更多jQuery的语法,大家可以查看:《jQuery 1.10.3 在线手册》,也希望大家多多支持脚本之家。

其中有些已经无法访问,或许是文件移除,或许是被封锁。大家分享的东西,没什么特别的可说的,唯有感谢无私分享的人们。

猫嗔提醒大家在使用的时候注意jQuery包的版本问题,最好是使用相同的版本,因为使用了高版本很有可能出现或多或少的问题。并且其中英文插件在转换成中文时注意编码,推荐utf-8。

jQuery插件-文件上传(File upload)
Ajax File Upload.
jQUploader.
电竞即时比分app,竞博电竞,Multiple File Upload plugin.
jQuery File Style.
Styling an input type file.
电竞竞猜app排名,Progress Bar Plugin.

jQuery插件-表单验证(Form Validation)
jQuery Validation.
Auto Help.
Simple jQuery form validation.
jQuery XAV – form validations.
jQuery AlphaNumeric.
盖世电竞,Masked Input.
TypeWatch Plugin.
Text limiter for form fields.
Ajax Username Check with jQuery.

jQuery插件-表单-选取框(Form – Select Box stuff)
jQuery Combobox.
jQuery controlled dependent (or Cascadign) Select List.
Multiple Selects.
Select box manipulation.
Select Combo Plugin.
jQuery – LinkedSelect
Auto-populate multiple select boxes.
Choose Plugin (Select Replacement).

jQuery插件-表单基本、输入框、选择框等(Form Basics, Input Fields, Checkboxes etc.)
jQuery Form Plugin.
jQuery-Form.
jLook Nice Forms.
jNice.
Ping Plugin.
Toggle Form Text.
ToggleVal.
jQuery Field Plugin.
jQuery Form'n Field plugin.
jQuery Checkbox manipulation.
jTagging.
jQuery labelcheck.
Overlabel.
3 state radio buttons.
ShiftCheckbox jQuery Plugin.
Watermark Input.
jQuery Checkbox (checkboxes with imags).
jQuery SpinButton Control.
jQuery Ajax Form Builder.
jQuery Focus Fields.
jQuery Time Entry.

jQuery插件-时间、日期和颜色选取(Time, Date and Color Picker)
jQuery UI Datepicker.
jQuery date picker plugin.
jQuery Time Picker.
Time Picker.
ClickPick.
TimePicker.
Farbtastic jQuery Color Picker Plugin.
Color Picker by intelliance.fr.

jQuery插件-投票插件(Rating Plugins)
jQuery Star Rating Plugin.
jQuery Star Rater.
Content rater with asp.net, ajax and jQuery.
Half-Star Rating Plugin.

jQuery插件-搜索插件(Search Plugins)
jQuery Suggest.
jQuery Autocomplete.
jQuery Autocomplete Mod.
jQuery Autocomplete by AjaxDaddy.
jQuery Autocomplete Plugin with HTML formatting.
jQuery Autocompleter.
AutoCompleter (Tutorial with PHP&MySQL).
quick Search jQuery Plugin.