精灵饭饭

[置顶] FCKeditor编辑器如何使用

摘要: 转自 http://www.cnblogs.com/tylerdonet/archive/2013/04/20/3032980.html 阅读全文

posted @ 2016-10-28 14:38 精灵饭饭 阅读(123) 评论(0) 推荐(0) 编辑

[置顶] Jsonp理论实例代码详解

摘要: 什么是Json?JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于JavaScript(Standard ECMA-262 3rd Edition - December 1999)的一个子集。 JSON采用完全独立于语言的文本格式,但是也使用了类似于 阅读全文

posted @ 2016-10-27 11:30 精灵饭饭 阅读(334) 评论(0) 推荐(0) 编辑

2017年2月23日

文本溢出用省略号代替

摘要: <p class="title">A20 Banana Pi Development Board Module - Deep Blue</p> /*单行文本*/.title{width: 150px;height: 25px;line-height: 25px;overflow: hidden;wh 阅读全文

posted @ 2017-02-23 15:00 精灵饭饭 阅读(217) 评论(0) 推荐(0) 编辑

2016年11月29日

常用的正则表达式

摘要: //删除数组里的尖括号和运算符 for(var k=0;k<gs2.length;k++){ gs2[k]=gs2[k].replace(/[^0-9]/ig,""); //删除数组里的尖括号和运算符 } 阅读全文

posted @ 2016-11-29 15:56 精灵饭饭 阅读(105) 评论(0) 推荐(0) 编辑
小动画插件链接

摘要: 小丑人时间 http://chabudai.org/blog/?p=59 http://www.cnblogs.com/shenyixin/archive/2012/10/25/2739289.html 以下代码参考 阅读全文

posted @ 2016-11-29 15:26 精灵饭饭 阅读(153) 评论(0) 推荐(0) 编辑
身份证验证

摘要: $("#idCardNumber").blur(function() { var idCardNumber = $("#idCardNumber").val(); if (!idCardNumber) { return; } if (!IdCardValidate(idCardNumber)) { 阅读全文

posted @ 2016-11-29 14:15 精灵饭饭 阅读(226) 评论(0) 推荐(0) 编辑
非空验证提示错误信息

摘要: //html页面 <div class="maxtop"> <a name="anchor_legalPersonName"></a> <div class="title">学校法人姓名</div> <div> <div id="text_red" class="red"></div> <div> 阅读全文

posted @ 2016-11-29 11:40 精灵饭饭 阅读(392) 评论(0) 推荐(0) 编辑
prompt弹框返回输入的文本

摘要: 演示网址链接http://www.w3school.com.cn/jsref/met_win_prompt.asp <html> <head> <script type="text/javascript"> function disp_prompt() { var name=prompt("请输入您 阅读全文

posted @ 2016-11-29 09:37 精灵饭饭 阅读(300) 评论(0) 推荐(0) 编辑

2016年11月28日

样式PC和手机页面

摘要: /*媒体查询--当页面大于1200px时*/ @media (min-width: 1200px) { } /*在922和1199像素之间的屏幕里,中等屏幕*/ @media (min-width: 992px) and (max-width: 1199px) { } /*在768和991像素之间的 阅读全文

posted @ 2016-11-28 15:19 精灵饭饭 阅读(138) 评论(0) 推荐(0) 编辑
layer弹框

摘要: 官网http://layer.layui.com/ /!*如果是页面层*/layer.open({ type: 1, content: '传入任意的文本或html' //这里content是一个普通的String}); layer.open({ type: 1, content: $('#id') 阅读全文

posted @ 2016-11-28 15:13 精灵饭饭 阅读(265) 评论(0) 推荐(0) 编辑
滚动条案例

摘要: 运行样式案例链接http://bbs.blueidea.com/thread-3116661-1-1.html <!DOCTYPE html><html><head><meta charset="utf-8" /><title>demo</title><style>html, body, div, 阅读全文

posted @ 2016-11-28 15:05 精灵饭饭 阅读(261) 评论(0) 推荐(0) 编辑

2016年11月25日

20161129随笔

摘要: 获取redio值 var zhi=$('input[name="'+name_s+'"]:checked').val(); if(zhi=="undefined" || zhi=="null" || zhi==undefined || zhi==null)//空验证 var e_id1 = $.qu 阅读全文

posted @ 2016-11-25 17:19 精灵饭饭 阅读(158) 评论(0) 推荐(0) 编辑