随笔分类 - 前端
摘要:报错: SELECT value FROM [Table]vars WHERE name='noteexists' 需修改:uc_server\data\config.inc.php 与 config\config_ucenter.php 信息一致
        阅读全文
            
摘要:安装 apache2, vim, keepalived 和 ipvsadm 打开 vim /etc/keepalived/keepalived.conf 点击 i, 进入编辑状态, 输入: 然后点击 esc, 退出编辑, 输入 :wq 保持. 启动 service keepalived start 
        阅读全文
            
摘要:Select2 version 4.0.3 https://select2.github.io
        阅读全文
            
摘要:Ajax 直接对服务端的Response.Redirect是不感冒的, 另觅途径, 具体可行办法如下: Web Service 服务端: ajax 客户端: 响应结果如下:
        阅读全文
            
摘要:1. IE不能渲染指令中的 style="background-color",而chrome和firefox可以
        阅读全文
            
摘要:针对服务端控件的 CommandField “Delete” 添加 js
        阅读全文
            
摘要:要兼容 IE8,9,最高可使用 jquery 1.9.1,比它高的版本则不支持 ;且使用Bootstrapv3.3.4 时,需要jquery版本 1.9.1 或以上。在使用 $.ajax({url:remoteBaseAddress+url,data:jsonStr,type:'POST',data...
        阅读全文
            
摘要:为$("#ReceivedDate").datepicker(); 添加 time:解决办法: 自定义一个函数: functionformatDateWithHHmm(current){if(/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(current)){vardate=ne...
        阅读全文
            
摘要:一种前端开发框架,如同YUI下载源码找开后,其文件结构如下:bootstrap/├── css/│ ├── bootstrap.css│ ├── bootstrap.min.css│ ├── bootstrap-theme.css│ └── bootstrap-theme.min.css├── js/│ ├── bootstrap.js│ └── bootstrap.min.js└── fonts/ ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings
        阅读全文
            
摘要:1. AngularJs 是一个JS 框架,是一种基于MVC的设计模式,也是一种遵循MVVM的设计模式 2. script 需引用 <script src="angular.min.js">,Nuget安装包: AngularJs.Core 和 AngularJs.Route 3. 主要内容:Mod
        阅读全文
            
摘要:1. 赋值 var o = anything || ' anythig is undefined'; // o 首先会取值 anything, 但如果anything 未定义, 则会取值 'anything is undefined'. var o = anything && 'anything i
        阅读全文
            
摘要:div {width:100px;height:200px;word-wrap: break-word;overflow:hidden;}这个可以固定div的宽高,溢出内容会被剪除。table{table-layout:fixed;width:200px;height:200px;}td {width:100px;height:200px;overflow:hidden;}这个只能固定td的宽度,而高度随内容增加而增高;若也要固定其高度,则需要在td中嵌套使用div,包住content,利用div的css。如果 去除 table-layout:fixed; 情况则会反过来。
        阅读全文
            
摘要:盒子模型:margin(边界),可被占位;border(边框);padding(填充);content(内容)块元素: 默认占据一行,前后换行。 作为容器,装载块元素和行内元素,被装载元素的位置,会都受到容器的限制。 在CSS(display/float/position)作用下,块元素和行内...
        阅读全文
            
摘要:<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><style type="text/css">.hh{min-height:100px;height:auto !important;height:100px; width:30%;background:#FFF000;}</style></head><body><div class=&q
        阅读全文
            
摘要:Array.prototype.noRepeated=function(){ var newArray=[], flags={}; for (var i=0;i<this.length;i++){ var item= this[i]; if (!flags[item]) { newArray.push(item); flags[item] = true; } } return newArray; } var a={"a":"0","b":"OK","c":[{"Account&q
        阅读全文
            
摘要:1. 减少HTTP请求次数合并图片、CSS、JS,改进首次访问用户等待时间。2. 使用CDN就近缓存==>智能路由==>负载均衡==>WSA全站动态加速3. 避免空的src和href当link标签的href属性为空、script标签的src属性为空的时候,浏览器渲染的时候会把当前页面的URL作为它们的属性值,从而把页面的内容加载进来作为它们的值。测试4. 为文件头指定Expires使内容具有缓存性。避免了接下来的页面访问中不必要的HTTP请求。5. 使用gzip压缩内容压缩任何一个文本类型的响应,包括XML和JSON,都是值得的。旧文章6. 把CSS放到顶部7. 把JS放到底
        阅读全文
            
摘要:table{border-top:1px solid #6E7B8B; border-right:1px solid #6E7B8B;width:500px;}td{border-left:1px solid #6E7B8B; border-bottom:1px solid #6E7B8B;height:21px;width:200px;}1-11-21-31-42-12-22-32-43-13-23-33-4==============================================.table{display:table;border-top:1px solid #6E7B
        阅读全文
            
摘要:var columnTypes=[]; //创建数组//下面是columnTypes对象的属性, 不是 columnTypes里的成员columnTypes["name"] = "A"; //等同 columnTypes.name="A"; 也可以通过原型字义 Array.prototype.name="A", //但是由原型定义的属性,则对所有 Array对象都适用.columnTypes["age"] = 12;columnTypes["sex"] = "man
        阅读全文
            
摘要:1 $.fn.extend({ 2 // $(that).children() 只读取 id 以 "json_" 开始的元素, 3 // 且 id 的命名规则一定是 json_[id]_[dataType] 4 // [id] 是不能包含 _ 的任何有意义的名称 5 // [dataType] 是该元素的数据类型,根据 c# 的基本数据类型命名,用途待续... 6 toSubmitJSON: function (url) { 7 8 var that = this; 9 var elementIdPattern = /...
        阅读全文
            
摘要:由window.open 打开的子页面,可以通过JQuery 修改父页面的值:var table = $("#tbRepeater", opener.document); //获取父页面的tabletable.find("td #name").val("被子页面修改的值");
        阅读全文
            
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号