06 2016 档案

 
移动混合开发之android文件管理新建文件和删除文件
摘要:今天经过一天超过8小时的实践,有很多CSS上的细节需要注意: 1, 2.选择器的优先级 3.动画的设置 需要设置一个初始状态和结束状态, 全部代码: 1.index.html 2.index.css 3.index.js 阅读全文
posted @ 2016-06-25 20:03 I'm new 阅读(987) 评论(0) 推荐(0)
移动混合开发之文件管理工具栏
摘要:index.html index.css index.js 阅读全文
posted @ 2016-06-25 13:47 I'm new 阅读(234) 评论(0) 推荐(0)
rem ,em ,px的区别
摘要:参考网址:http://www.cnblogs.com/leejersey/p/3662612.html 阅读全文
posted @ 2016-06-24 21:47 I'm new 阅读(123) 评论(0) 推荐(0)
移动混合开发之android文件管理-->flexbox,webFont。
摘要:增加操作栏,使用felxbox居中,felx相关参考网址:http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html 使用webFont添加图标,webFont下载地址为http://fontello.com/ index.html: index 阅读全文
posted @ 2016-06-24 21:36 I'm new 阅读(229) 评论(0) 推荐(0)
移动混合开发之android文件管理demo
摘要:框架采用cordova,android编译环境为android studio.系统为mac,cordova 环境搭建参考网址:http://cordova.apache.org/docs/en/5.0.0/cordova/plugins/pluginapis.html#Plugin%20APIs 1 阅读全文
posted @ 2016-06-23 16:53 I'm new 阅读(957) 评论(0) 推荐(0)
移动混合开发之页面布局
摘要:index.css: index.js: 阅读全文
posted @ 2016-06-21 20:08 I'm new 阅读(519) 评论(0) 推荐(0)
移动混合开发之HTML5在移动开发中的准则
摘要:1.尽量单页面开发 2.慎重选择前端UI框架,新手最好自己动手。 3.动画特效达到60fps 4.长度单位是用rem,即字体的宽度,字体宽度可根据 window.width/number. 阅读全文
posted @ 2016-06-21 20:00 I'm new 阅读(174) 评论(0) 推荐(0)
移动混合模式开发
摘要:一个移动app需要原声和html集成框架如cordova。 再者需要一个移动UI框架,就可以开发移动app.如下是一些国外常用的UI框架 http://tutorialzine.com/2015/10/comparing-the-top-frameworks-for-building-hybrid- 阅读全文
posted @ 2016-06-19 19:29 I'm new 阅读(359) 评论(0) 推荐(0)
jQueryMobile控件之ListView
摘要:Title Title 这是头部 A B C D A ... 阅读全文
posted @ 2016-06-18 17:09 I'm new 阅读(2345) 评论(0) 推荐(0)
jQueryMobile控件之展开与合并
摘要:Title 我是Section标题 我是内容,你要咋个? 我是Section标题 我是内容,你要咋个? ... 阅读全文
posted @ 2016-06-18 16:19 I'm new 阅读(378) 评论(0) 推荐(0)
jQueryMobile控件之页面切换
摘要:页面跳转 这是头部 跳转下一页 这是内容部分 这是底部 这是头部 返回 这是内容部分 这是内容部分 这是内容部分 ... 阅读全文
posted @ 2016-06-18 16:18 I'm new 阅读(348) 评论(0) 推荐(0)
jQueryMobile控件之按钮
摘要:按钮 头部 列表世界各国 列表世界各国 列表世界各国 列表世界各国 ... 阅读全文
posted @ 2016-06-18 16:17 I'm new 阅读(240) 评论(0) 推荐(0)
jQueryMobile控件之复选框
摘要:Title 我是Section标题 我是内容,你要咋个? 我是Section标题 我是内容,你要咋个? ... 阅读全文
posted @ 2016-06-18 16:16 I'm new 阅读(1027) 评论(0) 推荐(0)
jQueryUI 之控件们
摘要:总结:总的来说,这些控件可以在官网找到列子, 部分ui效果不如意的,可根据jQueryUI上添加的类选择器等,进行再加工 阅读全文
posted @ 2016-06-18 14:22 I'm new 阅读(546) 评论(0) 推荐(0)
jQueryUI之交互
摘要:一共4项:允许拖动,拖入,列表选择,列表cell拖动排序 阅读全文
posted @ 2016-06-18 14:17 I'm new 阅读(257) 评论(0) 推荐(0)
jQuery侧边栏固定
摘要:jQuery实现: 阅读全文
posted @ 2016-06-17 08:13 I'm new 阅读(228) 评论(0) 推荐(0)
jQuery 菜单项切换
摘要:标签1 标签2 标签3 内容1 内容2 内容3 加载完整页面 加载部分JSP 加载全部JSP 阅读全文
posted @ 2016-06-14 20:48 I'm new 阅读(324) 评论(0) 推荐(0)
jQuery 实现菜单
摘要:垂直菜单 主菜单1 菜单1 菜单2 菜单3 主菜单2 菜单1 菜单2 菜单3 主菜单3 菜单1 ... 阅读全文
posted @ 2016-06-14 14:22 I'm new 阅读(307) 评论(0) 推荐(0)
jQuery 动态添加瀑布流
摘要:... 阅读全文
posted @ 2016-06-13 18:26 I'm new 阅读(416) 评论(0) 推荐(0)
jQuery 自定义扩展,与$冲突处理
摘要:jQuery扩展.js 阅读全文
posted @ 2016-06-12 18:27 I'm new 阅读(211) 评论(0) 推荐(0)
jQuery get post 碎片(远程html)加载
摘要:加载碎片 box.htm 碎片加载中.js 阅读全文
posted @ 2016-06-12 13:39 I'm new 阅读(394) 评论(0) 推荐(0)
jQuery 元素遍历
摘要:div1 div2 Hello 机构数量工具 div1 div2 Hello p H1 H2 H3 H4 H5 H6 直... 阅读全文
posted @ 2016-06-12 09:16 I'm new 阅读(576) 评论(0) 推荐(0)
jQuery 操作CSS
摘要: 阅读全文
posted @ 2016-06-12 07:51 I'm new 阅读(115) 评论(0) 推荐(0)
jQuery 对dom的操作
摘要:点击获取 Jquery获取元素内容html内容 网易 点击更改 奥尔加工加工阿尔 改变html可以添加标签 改变属性 点击插入 插入元素内容 插入元素内容 插入元素内容 插入元素内容 点击删除 删除元素内容 我在div里面,你要咋个 咋个... 阅读全文
posted @ 2016-06-11 14:34 I'm new 阅读(193) 评论(0) 推荐(0)
jQuery 常用动画
摘要://除此之外还有slideDown, slideup, 每个动画都有一个执行完毕后的回调函数 阅读全文
posted @ 2016-06-10 19:59 I'm new 阅读(165) 评论(0) 推荐(0)
JQuery 事件
摘要:常用事件 自定义事件: 我的理解,就是将某元素的行为进行封装, 这样将事件的触发与行为进行解耦 参考代码: 注意事项: 1. 相同事件添加到父节点即可,通过target来获取当前点击的元素 2. 别把过多代码绑定到document.ready中,可以把部分不需要的移入windows.load中 以下 阅读全文
posted @ 2016-06-09 17:30 I'm new 阅读(144) 评论(0) 推荐(0)
JQuery 选择器
摘要:CSS的选择器语法在JQury同样试用。选择器中和CSS选择器一样,id选择器是最快的。 注意事项: 1.多次使用的html元素,一定要缓存。 2.事先把要插入的html元素准备好,不能多次插入 3.给选择器一个上下文,缩短查找范围:例:$('.myDiv' , $("#listItem") ) 如 阅读全文
posted @ 2016-06-09 17:22 I'm new 阅读(108) 评论(0) 推荐(0)
JS 职责链模式
摘要: 阅读全文
posted @ 2016-06-07 19:41 I'm new 阅读(121) 评论(0) 推荐(0)
IOS 中的KVO模式 观察者模式
摘要:所谓观察者模式运用:当对象属性改变是,同时通知多个页面的进行更改。 阅读全文
posted @ 2016-06-07 16:19 I'm new 阅读(142) 评论(0) 推荐(0)
编码规范
摘要:1.function 作为类时,首字母大写 2.function 作为方法,第二个单词首字母大写。 3.js最好用单引号。 阅读全文
posted @ 2016-06-07 12:29 I'm new 阅读(109) 评论(0) 推荐(0)
JS 代理模式
摘要: 阅读全文
posted @ 2016-06-07 11:49 I'm new 阅读(205) 评论(0) 推荐(0)
JS 工厂模式
摘要: 阅读全文
posted @ 2016-06-05 12:54 I'm new 阅读(168) 评论(0) 推荐(0)
JS constructor
摘要:1.每个对象都有一个constructor,都指向创建该对象的方法。 2.function对象的prototype的constructor也是指向该方法。如果对prototype进行重写,constructor将消失,但可以 显性添加constructor指向其函数对象。 参考:http://blo 阅读全文
posted @ 2016-06-05 10:00 I'm new 阅读(213) 评论(0) 推荐(0)
构造函数模式
摘要:1.创建特定类型的对象 2.js开发尽量用单引号 阅读全文
posted @ 2016-06-05 08:48 I'm new 阅读(122) 评论(0) 推荐(0)
单例模式
摘要:按钮a 按钮b 阅读全文
posted @ 2016-06-04 19:49 I'm new 阅读(151) 评论(0) 推荐(0)
JS设计模式书籍、原则
摘要:圣经书:JavaScript 高级程序设计 设计模式:DesignPatterns by Erich Gamma、Richard Hlem、Ralph Johnson 、Jhon Vlissides 设计原则:想像类的构造 1、开闭原则,继承父类 重写方法,不修改方法。 2、里氏转换原则,继承父类, 阅读全文
posted @ 2016-06-04 11:56 I'm new 阅读(786) 评论(0) 推荐(0)
正则表达式
摘要:1、正则表达式主要用于匹配字符串,拥有内置String对象的一些常用方法。但我觉得用正则表达式应该去匹配一些字符串的组合,如电话号码,邮箱等,当然查找和替换还是有用的,因为他可以全局替换嘛。 这里附上两个学习网址:一个有帮助文档,如语法,另一个是正则分析工具: http://www1.w3cfuns 阅读全文
posted @ 2016-06-04 09:37 I'm new 阅读(130) 评论(0) 推荐(0)
级联函数
摘要: 阅读全文
posted @ 2016-06-03 19:44 I'm new 阅读(315) 评论(0) 推荐(0)
函数颗粒化 参数截取并传递
摘要: 阅读全文
posted @ 2016-06-03 08:07 I'm new 阅读(664) 评论(0) 推荐(0)
惰性函数
摘要:增加运行速度。 阅读全文
posted @ 2016-06-03 07:31 I'm new 阅读(154) 评论(0) 推荐(0)
面向对象之类的封装与调用
摘要: 阅读全文
posted @ 2016-06-02 16:53 I'm new 阅读(157) 评论(0) 推荐(0)
面向对象之prototype,__proto__
摘要:Object.prototype.__proto__ = null; //这是终点 __proto__指向的是构建者的prototype,它构成连接了原型链。 函数对象的prototype是个对象,里面有构造函数等,可克隆其他对象的方法。 原型链参考文章:http://blog.csdn.net/c 阅读全文
posted @ 2016-06-02 16:16 I'm new 阅读(165) 评论(0) 推荐(0)
Screen对象
摘要:Screen对象为整个显示屏的大小 window对象为浏览器的大小 阅读全文
posted @ 2016-06-02 13:28 I'm new 阅读(156) 评论(0) 推荐(0)
location对象
摘要:1.获取主机名、路径、端口、协议 var hostName = window.location.hostname; var pathName = window.location.pathname; var port = window.location.port; var protocal = win 阅读全文
posted @ 2016-06-02 12:31 I'm new 阅读(94) 评论(0) 推荐(0)
history对象
摘要:1、history对象前进 history.forward() 2、history对象后退 history.back() 3、history对象跳入指定页面 history.go(-1); //当前页面为0,前进为1后退为-1,等等。 阅读全文
posted @ 2016-06-02 12:19 I'm new 阅读(94) 评论(0) 推荐(0)
JS计时器
摘要:连续执行: 1、 var timeInterval = setInterval(function(){},500); 2、清除计时: clearInterval(timeInterval); 暂停执行 1、 var tOut = setTimeOut(function(){},3000); 2、 停 阅读全文
posted @ 2016-06-02 11:36 I'm new 阅读(93) 评论(0) 推荐(0)
window对象
摘要:1.获取窗口高宽 document.write("innerHegiht:"+window.innerHeight +"宽度:"+window.innerWidth); 2、打开新的窗口 window.open("http://www.163.com","网易"); 阅读全文
posted @ 2016-06-02 11:05 I'm new 阅读(95) 评论(0) 推荐(0)