JQuery Easy UI 使用

JQuery EasyUI 使用笔记

最近一直需要快速搭建GPU的WEB admin,只能借助于JQuery EasyUI,故将找到的资料摘抄如下

DataGrids 中添加ProgressBar
http://weichao202.iteye.com/blog/1731704
http://m.luojunchi.com/article/58.html

DataGrids 扩展Row, 折叠
http://www.2cto.com/kf/201208/147511.html
http://www.qeefee.com/article/S174

选中行事件
http://www.w3cschool.cc/jeasyui/jeasyui-datagrid-datagrid3.html
http://www.bubuko.com/infodetail-670634.html

判断Udefined
http://www.cnblogs.com/mountain-mist/articles/1600995.html

(JS对话框)
http://www.cnblogs.com/xiaofengfeng/archive/2012/10/20/2732784.html

添加datagrid菜单
http://blog.csdn.net/dyllove98/article/details/8870119

Jquery 获取父元素/子元素
http://www.jb51.net/article/41283.htm

JQuery flot画图
http://www.cnblogs.com/xiangniu/archive/2011/03/12/1982163.html
http://www.jqueryflottutorial.com/cn/how-to-make-jquery-flot-realtime-update-chart.html
http://www.jqueryflottutorial.com/cn/how-to-make-jquery-flot-line-chart-and-bar-chart.html

清除、添加style样式
有些页面样式不规范,没有写在一个class里,例如:

<div id="show" style="width:100px; padding-top:10px; font-size:12px;">div>

这种情况下清空style可以removeAttr()方法移除style属性来实现

$("#show").removeAttr("style"); //ie,ff均支持
$("#show").attr("style","");   //ff支持,ie不支持 

JQuery 复制插入表格tr

 function addtr(){
     var tr = $("#tb tr").eq(0).clone(); 
     tr.appendTo("#tb"); 
     //tr.insertBefore("#tb tr:last");
   }
"tb">
    <tr>   </tr>    //  tr 的下标从 0 开始

     >
</table>

获取text和html


<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
script>
<script>
$(document).ready(function(){
  $("#btn1").click(function(){
    alert("Text: " + $("#test").text());
  });
  $("#btn2").click(function(){
    alert("HTML: " + $("#test").html());
  });
});
script>
head>

<body>
<p id="test">This is some <b>boldb> text in a paragraph.p>
<button id="btn1">Show Textbutton>
<button id="btn2">Show HTMLbutton>
body>
html>

Jquery JSON数组、对象操作

var datas=[];
var data = {};
data["id"] = 1;
data["name"] = "test" + 1;
data["age"] = 1 * 2;
datas.push(data);
var jsonString = JSON.stringify(datas); /*JSON转字符串*/ //[{"id":1,"name":"test1","age":2}]
msg.innerHTML=jsonString;
var epc=eval("("+jsonString+")");
alert(epc[0].id);

JSON http://www.oschina.net/code/snippet_242050_21186
JQuery JSON缓存 http://blog.csdn.net/lonestar555/article/details/11337527

JQuery JSON遍历
http://caibaojian.com/jquery-each-json.html
http://blog.csdn.net/happy664618843/article/details/7934221

JQuery ajax跨域
http://www.oschina.net/question/209440_75040

JQuery定时器
http://www.cnblogs.com/couxiaozi1983/archive/2012/04/15/2450273.html

http://blog.csdn.net/xiayuzheng/article/details/9192963

你可能感兴趣的:(网络编程)