【文件属性】:
文件名称:ajaxStandAlone:避免在任何地方使用 Jquery 的独立 ajax 库
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-05 20:27:43
JavaScript
#独立的ajax库。
运行 npm install 然后 gulp 以获得缩小版本。
#用途
###阿贾克斯
Ajax ( {
type : "POST/GET" ,
url : url ,
data : data ,
success : success ,
dataType : dataType
} ) ;
#####邮政
Ajax . post ( 'myURL.html' , { "data" : "Data" } , function ( data ) {
console . log ( data ) ;
} ) ;
#####得到
Ajax . get ( 'myURL.html' , function ( myData ) {
console . log ( myData ) ;
} , 'json' ) ;
#####getJSO
【文件预览】:
ajaxStandAlone-master
----example()
--------index.html(108B)
--------example.js(534B)
--------data.json(22B)
----gulpfile.js(257B)
----README.md(541B)
----.gitignore(30B)
----index.js(7KB)
----package.json(409B)