会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
applc
纸上得来终是浅
博客园
首页
新随笔
联系
管理
随笔分类 -
jquery
jquery操作Ajax返回的JSON值
摘要:$.post( 'XXX.php', { col: value }, function(data) { var getData = eval( "(" + data + ")" ); //必须用括号,真蛋疼 alert( getData.xx ); });
阅读全文
posted @
2014-07-25 16:25
appll
阅读(129)
评论(0)
推荐(0)
jquery获取元素位置
摘要:获取绝对位置坐标——offset()方法 var top = $(selector).offset().top; var left = $(selector).offset().left;获取相对位置坐标——position()方法 var top = $(selector).position...
阅读全文
posted @
2014-07-25 11:23
appll
阅读(146)
评论(0)
推荐(0)
公告