会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
太菜
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
下一页
2016年12月28日
js URL中文传参乱码
摘要: js: var searchVal = encodeURIComponent($.trim($('#js_search_val').val()));//搜索的值 encodeURIComponent() 函数可把字符串作为 URI 组件进行编码。
阅读全文
posted @ 2016-12-28 11:11 太菜
阅读(130)
评论(0)
推荐(0)
2016年12月26日
CentOS 配置防火墙操作实例(启、停、开、闭端口):
摘要: CentOS 配置防火墙操作实例(启、停、开、闭端口): 注:防火墙的基本操作命令: 查询防火墙状态: [root@localhost ~]# service iptables status<回车> 停止防火墙: [root@localhost ~]# service iptables stop <
阅读全文
posted @ 2016-12-26 14:19 太菜
阅读(166)
评论(0)
推荐(0)
CentOS 安装 lamp(转)
摘要: 一般情况下,安装的都是最新的正式版,除非你有特殊需求,要安装指定的版本,本文暂不讨论。从最基础的开始,一点点完成一个可用的 Linux 主机。这里就开始介绍如何在 CentOS 6.0 上安装 LAMP 组件。经过如下语句安装,目前安装到的版本为:PHP:5.3.2Apache:2.2.15MySQ
阅读全文
posted @ 2016-12-26 13:56 太菜
阅读(133)
评论(0)
推荐(0)
2016年11月25日
火狐浏览器 js 1到9月份 new DATE不返回时间
摘要: 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 太菜
阅读(213)
评论(0)
推荐(0)
2016年11月4日
web 打开子窗口提交数据或其他操作后 关闭子窗口且刷新父窗口实现
摘要: 父页面 :
阅读全文
posted @ 2016-11-04 10:44 太菜
阅读(1749)
评论(0)
推荐(0)
2016年10月27日
jquery on 绑定多个事件 多个元素
摘要: $('.wrap').on({ click:function(){ //事件1 ...... }, keyup:function() { //事件2 ....... }, keydown:function(){ //事件3 ....... }},'.select1,.select2,select3'
阅读全文
posted @ 2016-10-27 14:38 太菜
阅读(8595)
评论(2)
推荐(1)
js 判断 是否位数字
摘要: 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 太菜
阅读(936)
评论(0)
推荐(0)
2016年10月9日
checkbox 判断是否选中
摘要: if($(#checkbox).is(':checked'))
阅读全文
posted @ 2016-10-09 17:11 太菜
阅读(362)
评论(0)
推荐(0)
checkbox 设置不可更改
摘要: readonly="readonly" 设置不起作用 用 onclick="return false;"
阅读全文
posted @ 2016-10-09 14:37 太菜
阅读(7087)
评论(1)
推荐(1)
2016年9月14日
特别选择器
摘要: :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 太菜
阅读(124)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告