摘要: js: var searchVal = encodeURIComponent($.trim($('#js_search_val').val()));//搜索的值 encodeURIComponent() 函数可把字符串作为 URI 组件进行编码。 阅读全文
posted @ 2016-12-28 11:11 太菜 阅读(125) 评论(0) 推荐(0) 编辑
摘要: CentOS 配置防火墙操作实例(启、停、开、闭端口): 注:防火墙的基本操作命令: 查询防火墙状态: [root@localhost ~]# service iptables status<回车> 停止防火墙: [root@localhost ~]# service iptables stop < 阅读全文
posted @ 2016-12-26 14:19 太菜 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 一般情况下,安装的都是最新的正式版,除非你有特殊需求,要安装指定的版本,本文暂不讨论。从最基础的开始,一点点完成一个可用的 Linux 主机。这里就开始介绍如何在 CentOS 6.0 上安装 LAMP 组件。经过如下语句安装,目前安装到的版本为:PHP:5.3.2Apache:2.2.15MySQ 阅读全文
posted @ 2016-12-26 13:56 太菜 阅读(125) 评论(0) 推荐(0) 编辑
摘要: new Date('2016-1'); //错误 1到9月份必须 01 02 。。。。。。 正确 new Date('2016-01'); var nowMonth = nowMonth>=10 ? nowMonth : '0'+nowMonth; //兼容火狐 阅读全文
posted @ 2016-11-25 10:53 太菜 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 父页面 : 阅读全文
posted @ 2016-11-04 10:44 太菜 阅读(1726) 评论(0) 推荐(0) 编辑
摘要: $('.wrap').on({ click:function(){ //事件1 ...... }, keyup:function() { //事件2 ....... }, keydown:function(){ //事件3 ....... }},'.select1,.select2,select3' 阅读全文
posted @ 2016-10-27 14:38 太菜 阅读(8573) 评论(2) 推荐(1) 编辑
摘要: isNaN(val) val为数字返回false 不为数字返回truedocument.write(isNaN(123)); document.write(isNaN(-1.23)); document.write(isNaN(5-2)); document.write(isNaN(0)); doc 阅读全文
posted @ 2016-10-27 14:30 太菜 阅读(925) 评论(0) 推荐(0) 编辑
摘要: if($(#checkbox).is(':checked')) 阅读全文
posted @ 2016-10-09 17:11 太菜 阅读(347) 评论(0) 推荐(0) 编辑
摘要: readonly="readonly" 设置不起作用 用 onclick="return false;" 阅读全文
posted @ 2016-10-09 14:37 太菜 阅读(7050) 评论(1) 推荐(1) 编辑
摘要: :nth-child(n) p:nth-child(2) 选择属于其父元素的第二个子元素的每个 <p> 元素。 3 :nth-last-child(n) p:nth-last-child(2) 同上,从最后一个子元素开始计数。 3 :nth-of-type(n) p:nth-of-type(2) 选 阅读全文
posted @ 2016-09-14 14:50 太菜 阅读(114) 评论(0) 推荐(0) 编辑