![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jquery
文章平均质量分 81
zwqq01
这个作者很懒,什么都没留下…
展开
-
一个不错的 json 封装的例子
function credenceSubmit(){ var credence = validation(); if(credence==false){ return false; } new Ajax.Request( http://localhost:8080/slasset/credence_manage.do,{ method : post, param原创 2010-01-29 11:25:00 · 458 阅读 · 0 评论 -
操作json 的后台
int flag = 0; HttpSession session = request.getSession(); UserInfoBean user = (UserInfoBean) session.getAttribute("user"); if (user != null) { String jsonStr = request.getParameter("json"); Sy原创 2010-01-29 17:06:00 · 365 阅读 · 0 评论 -
jquery操作json
$(document).ready(function(){ $.each([{"a":{"04":"教育局"}},{"b":{"01":"财政局"}},{"c":{"02":"畜牧局"}}],function(indexs,datas){ var temp="序列:"+indexs+"/n"; $.each(datas,function(i,n){ temp=temp+"key原创 2010-02-11 11:30:00 · 339 阅读 · 0 评论 -
jquery 选择行 编辑行
$(function(){ //交替显示行 $(#alternation).click(function(){ $(tbody > tr:odd, $(#example)).toggleClass(alternation); }); //三色交替显示行 $(#alternationThree).click(function(){ $(tbody > tr:nth-child(原创 2010-01-05 19:57:00 · 1394 阅读 · 0 评论 -
jquery对象和dom对象相互转换
什么是jQuery对象? ---就是通过jQuery包装DOM对象后产生的对象。jQuery对象是jQuery独有的,其可以使用jQuery里的方法。 比如: $("#test").html() 意思是指:获取ID为test的元素内的html代码。其中html()是jQuery里的方法 这段代码等同于用DOM实现代码: document.getElementById("id原创 2010-01-05 20:00:00 · 190 阅读 · 0 评论