getJSON
来源:互联网 发布:php set 编辑:程序博客网 时间:2024/05/17 07:19
$.getJSON('ajax/test.json', function(data) {
var items = [];
$.each(data, function(key, val) {
items.push('<li id="' + key + '">' + val + '</li>');
});
$('<ul/>', {
'class': 'my-new-list',
html: items.join('')
}).appendTo('body');
});
var url="http://192.168.1.172:8080/milkTreasure-web/appDiscovery/getComment.do?"+type+""+typeid+"&"+objId+""+obj+"&"+page+"&"+rows+sum
$.getJSON(url, function(data) { $("#info").html("");//清空info内容 $.each(data.data, function(i, item) { $("#info").append( "<img id="+"userIco"+" src="+"http://nebor.cn/milkTreasure/"+ item.userIco+">"+ "<div id="+"userName"+">"+"" + item.userName + "</div>"+ "<div id="+"content"+">"+"" + item.content + "</div>"+ "<div id="+"Time"+">" + item.createTime +"</div><hr/>" ); }); });});
0 0
- $.getJSON()?
- $.getJSON
- $.getJSON
- getJson
- getjson
- $.getJson
- $.getJSON()
- getJSON
- getJSON
- jQuery.getJSON()
- getJSON 缓存
- jQuery getJson
- $.getJson()方法
- $.getjson()【笔记】
- jquery.getJSON($.getJSON)用法
- jQuery之$.getJSON使用
- jquery getjson简单应用
- jquery json getjson 翻页
- 在window的cmd中安裝virtualenv和在pycharm安裝virtualenv
- 面试题(有部分答案)
- 水浒108将数据
- 怎么写log
- java中instanceof用法
- getJSON
- 注解的随记
- 牌型种类
- 怎么使用C#调用C++ dll 类库
- Illegal modifier for parameter *** , only final is permitted”
- [leetcode]Max Points on a Line
- 1. Two Sum
- 在驱动设计的时候出现的error C2509
- Android精仿淘宝/QQ空间标题栏渐变效果