2017年7月16日

摘要: $("#tableForm").form("clear"); 阅读全文
posted @ 2017-07-16 16:49 幽默是一种心情 阅读(127) 评论(0) 推荐(0) 编辑
 
摘要: 例如:网址 http://localhost:26459/Master.aspx?5 $(function () { var url = location.search; if (url.indexOf("?") != -1)//url中存在问号,也就说有参数。 { alert(url.substr 阅读全文
posted @ 2017-07-16 10:05 幽默是一种心情 阅读(336) 评论(0) 推荐(0) 编辑
 

2017年7月14日

摘要: 方法一:if ($("#checkbox-id")get(0).checked) { // do something} 方法二:if($('#checkbox-id').is(':checked')) { // do something} 方法三:if ($('#checkbox-id').attr 阅读全文
posted @ 2017-07-14 12:57 幽默是一种心情 阅读(356) 评论(0) 推荐(0) 编辑
 

2017年7月12日

摘要: $("#RetailList").datagrid({ url: "../Ajax/MemberConsumAjax.ashx", queryParams://每次请求的参数 { cmd: 'documentList' }, showFooter: true, fitColumns: true, p 阅读全文
posted @ 2017-07-12 11:36 幽默是一种心情 阅读(1232) 评论(0) 推荐(0) 编辑
 

2017年7月9日

摘要: 1设置第一个checkbox 为选中值$('input:checkbox:first').attr("checked",'checked');或者$('input:checkbox').eq(0).attr("checked",'true'); 2、设置最后一个checkbox为选中值$('inpu 阅读全文
posted @ 2017-07-09 16:49 幽默是一种心情 阅读(3022) 评论(0) 推荐(0) 编辑
 

2017年7月8日

摘要: 1.无序列表 无序列表是一个项目的列表,此列项目使用粗体圆点(典型的小黑圆圈)进行标记。 无序列表始于 <ul> 标签。每个列表项始于 <li>。 2.有序列表 同样,有序列表也是一列项目,列表项目使用数字进行标记。 有序列表始于 <ol> 标签。每个列表项始于 <li> 标签。 3.定义列表 自定 阅读全文
posted @ 2017-07-08 10:27 幽默是一种心情 阅读(922) 评论(0) 推荐(1) 编辑
 
摘要: $(function () { //默认隐藏 $("#SelTime").hide(); $("#SeniorSel").toggle( function () { //第一次点击显示 id=SelTime的div $("#SelTime").show(); }, function () { //第 阅读全文
posted @ 2017-07-08 09:18 幽默是一种心情 阅读(140) 评论(0) 推荐(0) 编辑
 

2017年7月7日

摘要: 注意:可 用 ctrl+f 搜索 "_outerWidth():0" 1. jQuery.easyui.min.js 1.3.2 版本 function _745(_746,_747){var opts=$.data(_746,"combo").options;var _748=$.data(_74 阅读全文
posted @ 2017-07-07 21:20 幽默是一种心情 阅读(725) 评论(0) 推荐(0) 编辑
 
摘要: CSS中的 width 属性并不总是有效的如果对象是 inline 对象,width 属性就会被忽略,Firefox 和 IE 是遵循CSS标准,因而直接设置span宽度会无效。 解决:span { background-color:#ffcc00; display:block; width:150 阅读全文
posted @ 2017-07-07 19:52 幽默是一种心情 阅读(451) 评论(0) 推荐(0) 编辑
 

2017年7月2日

摘要: 获取select : 1.获取select 选中的 text : $("#ddlregtype").find("option:selected").text(); $("#ddlregtype option:selected").text(); 2.获取select选中的 value: $("#dd 阅读全文
posted @ 2017-07-02 14:16 幽默是一种心情 阅读(145) 评论(0) 推荐(0) 编辑