摘要:
json文件是一种轻量级的数据交互格式。一般在jquery中使用getJSON()方法读取。 $.getJSON(url,[data],[callback]) url:加载的页面地址 data: 可选项,发送到服务器的数据,格式是key/value callback:可选项,加载成功后执行的回调函数 阅读全文
posted @ 2017-12-27 23:07
Mr_伍先生
阅读(112611)
评论(3)
推荐(1)
摘要:
首先,依赖jquery.. 1 $('#btntb').click(function(){ 2 $('#tab tr').each(function(i){ // 遍历 tr 3 $(this).children('td').each(function(j){ // 遍历 tr 的各个 td 4 a 阅读全文
posted @ 2017-12-27 23:04
Mr_伍先生
阅读(4857)
评论(1)
推荐(0)
摘要:
$("#imgId").attr('src',path); 阅读全文
posted @ 2017-12-27 23:01
Mr_伍先生
阅读(1691)
评论(0)
推荐(0)

浙公网安备 33010602011771号