摘要: 一. HTML HTML中比较多逻辑代码,修改的时候要注意修改很多绑值的地方。 <div class="form-group"> <label class="col-lg-3 control-label">组织权限</label> <div ng-init="enablePids = [];disa 阅读全文
posted @ 2016-03-11 18:35 小骚木 阅读(8919) 评论(0) 推荐(0) 编辑
摘要: angular.module('newApp') .factory('dateUtil', function() { var symbolMap = { 'MM': function(date) { if (typeof(date) === 'string') { var d = new Date( 阅读全文
posted @ 2016-03-11 17:15 小骚木 阅读(1603) 评论(0) 推荐(0) 编辑
摘要: 使用方法看注释。主要解决帮上ngModel的问题 angular.module('newApp') .directive('ckeEditor', function() { return { /* For Example: <textarea id="..." name="..." class="f 阅读全文
posted @ 2016-03-11 17:13 小骚木 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 一. 添加基本配置 1. 添加指令 angular.module('newApp') .directive('dpHighchart', ['$rootScope', function($rootScope){ return { restrict: 'E', scope: { chartConfig 阅读全文
posted @ 2016-03-11 17:08 小骚木 阅读(2052) 评论(0) 推荐(0) 编辑
摘要: 一. 真分页表格基础 1. 需求:分页,排序,搜索都是需要发API到服务端。 2. JS实现代码: getStorage是localStorage一个工具方法,可以自己写这个方法。 API参数如下: { limit: initItemCountPerPage, index: options1.pag 阅读全文
posted @ 2016-03-11 16:44 小骚木 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 一. CSS有趣的样式 1. 去掉html5 <input type="search">的默认删除btn input::-webkit-search-cancel-button { display: none; } input[type=search]::-ms-clear { display: n 阅读全文
posted @ 2016-03-10 16:09 小骚木 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 一. Html4的History API back() 后退,跟按下“后退”键是等效的。 forward() 前进,跟按下“前进”键是等效的。 go() 用法:history.go(x);在历史的范围内去到指定的一个地址。如果 x < 0,则后退 x 个地址,如果 x > 0,则前进 x 个地址,如 阅读全文
posted @ 2016-03-10 15:04 小骚木 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 一. 流程页 像用户的注册页面,用户填一些信息的表单提交页面。 对于用户来说,从A(入口页)->B(流程页)->C(结果页),通常来说,用户完成信息到C页面后点击返回键(特别是Android的物理back键),通常返回B页面,但用户希望返回到A页面。 二. 处理方法 1. webView 通常使客户 阅读全文
posted @ 2016-03-10 14:52 小骚木 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 一. 什么是manifest 首先manifest是一个后缀名为minifest的文件,在文件中定义那些需要缓存的文件,支持manifest的浏览器,会将按照manifest文件的规则,像文件保存在本地,从而在没有网络链接的情况下,也能访问页面。 当我们第一次正确配置app cache后,当我们再次 阅读全文
posted @ 2016-03-10 14:36 小骚木 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 一. 效果图 二. 功能介绍 1. 支持横向移动 2. 支持点击Tab后该Tab居中 3. 拉到最左边和最右边后依然可以拉动,只是tabs的移动距离变小。 三. 使用说明 1. 在你的html中添加Tabs相关的代码。 <div class="analysis-tabs-title"> <ul> < 阅读全文
posted @ 2016-03-10 11:50 小骚木 阅读(2387) 评论(0) 推荐(0) 编辑