发布网友 发布时间:2022-04-30 13:53
共3个回答
热心网友 时间:2022-04-22 18:56
//举例//ui.button.jquery.json格式为:
{
"name": "ui.button",
"title": "jQuery UI Button",
"description": "Enhances a form with themable buttons.",
"keywords": [
"ui",
"button",
"form",
"radio",
"checkbox"
],
"version": "1.9.2",
"author": {
"name": "jQuery Foundation and other contributors",
"url": "https://github.com/jquery/jquery-ui/blob/1.9.2/AUTHORS.txt"
},
"maintainers": [
{
"name": "Scott González",
"email": "scott.gonzalez@gmail.com",
"url": "http://scottgonzalez.com"
},
{
"name": "Jörn Zaefferer",
"email": "joern.zaefferer@gmail.com",
"url": "http://bassistance.de"
},
{
"name": "Kris Borchers",
"email": "kris.borchers@gmail.com",
"url": "http://krisborchers.com"
},
{
"name": "Corey Frang",
"email": "gnarf37@gmail.com",
"url": "http://gnarf.net"
}
],
"licenses": [
{
"type": "MIT",
"url": "https://github.com/jquery/jquery-ui/blob/1.9.2/MIT-LICENSE.txt"
}
],
"bugs": "http://bugs.jqueryui.com/",
"homepage": "http://jqueryui.com/button/",
"demo": "http://jqueryui.com/button/",
"docs": "http://api.jqueryui.com/button/",
"download": "http://jqueryui.com/download/",
"dependencies": {
"jquery": ">=1.6",
"ui.core": "1.9.2",
"ui.widget": "1.9.2"
},
"category": "widget"
}
热心网友 时间:2022-04-22 20:14
用JS的function 来完成,在这个function 里可以用JQuery的ajax来提交或获取数据,关于ajax的使用方法请查查使用手册,这里不多说,而ajax可以提交并获取数据,当然获取服务器返回的json肯定没有问题,为了方便我给出ajax的方法
$.ajax({
热心网友 时间:2022-04-22 21:49
var john = eval('('+yourJsonData+')');