摘要: var val1 = $("#idname").val(); alert("val1:"+$.trim(val1)+"***");//只去除两边空格 阅读全文
posted @ 2017-11-23 16:35 存钱罐 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 低 中 高 $(".target").click(function(){ //方法一 注意空格与非空格 var index = $('.titTab span.select').index(); //方法二 //var index = $('.titTab .select').index(); alert("index:... 阅读全文
posted @ 2017-11-23 16:31 存钱罐 阅读(5059) 评论(0) 推荐(0) 编辑
摘要: str为要去除空格的字符串: 去除所有空格: str = str.replace(/\s+/g,""); 去除两头空格: str = str.replace(/^\s+|\s+$/g,""); 去除左空格: str=str.replace( /^\s*/, ''); 去除右空格: str=str.replace(/(\s*$)/g, ""); 阅读全文
posted @ 2017-11-13 10:30 存钱罐 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 三中的使用方法的简单实例如下: 行内样式: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>css行内样式</title> </head> <body> <div style="width:100px;height:100px; 阅读全文
posted @ 2017-11-07 15:51 存钱罐 阅读(30575) 评论(5) 推荐(3) 编辑
摘要: 注意观察以下两个ajax: 一, 二, 观察完毕,总结, 一中param如果为5则返回true,否则返回 finish ( true / false ) 二中param如果为5则返回true,否则返回 undifined 阅读全文
posted @ 2017-10-27 10:09 存钱罐 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 深入学习restful和reflect,后续更新 阅读全文
posted @ 2017-10-17 17:31 存钱罐 阅读(123) 评论(0) 推荐(0) 编辑
摘要: ****************微信平台的学习路径************http://mp.weixin.qq.com/wiki/home/index.html http://blog.csdn.net/gf771115/article/details/46453275 http://www.cn 阅读全文
posted @ 2017-10-12 14:13 存钱罐 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1,ORA-02292: 违反完整约束条件 (用户名.约束名) 已找到子记录; 2,ORA-00904: invalid identifier标识符无效 大部分情况下,此错误是由于引用了不存在的列名导致的,一般创建表时大小写不统一也容易导致该问题的出现; 3,ORA-00001:违反唯一约束条件; 阅读全文
posted @ 2017-10-12 13:52 存钱罐 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 一,只可编辑,粘贴复制字段长度不正常 <p contenteditable="true" >这是一个可编辑内容的p标签啦啦~</p> 二,可编辑,可粘贴复制,文本字段长度正常 <p contenteditable="plaintext-only" >这是一个可编辑内容的p标签啦啦~</p> 三,如果 阅读全文
posted @ 2017-10-09 10:45 存钱罐 阅读(2972) 评论(0) 推荐(0) 编辑
摘要: 0、常用代码: (1)AJAX请求 (2) 如何获取checkbox,并判断是否选中 (3) 获取checkbox选中的值 (4)checkbox全选/反选/选择奇数 (5)获取select下拉框的值 其实下拉框的最简单了,直接val就行了 (6)获取选中值,三种方法都可以: (7)设置第一个Rad 阅读全文
posted @ 2017-09-29 14:46 存钱罐 阅读(168) 评论(0) 推荐(0) 编辑