摘要: var oSwitch = function(el, options) { this.dom = null; this.header = null; this.footer = null; return new oSwitch.prototype.init(el, optio... 阅读全文
posted @ 2015-11-08 15:15 Mi文 阅读(174) 评论(0) 推荐(0) 编辑
摘要: function getByClass(parent, tagname, classname) { / var aEls = parent.getElementsByTagName(tagname); var arr = []; var re = new R... 阅读全文
posted @ 2015-11-08 15:02 Mi文 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 a b c解决火狐下的拖拽问题必须设置dataTransfer对象的setData方法才可以拖拽除图片外的其他标签window.onload = function(){ var oUl = document.getElementsByTagName('ul')[0... 阅读全文
posted @ 2015-11-08 15:01 Mi文 阅读(215) 评论(0) 推荐(0) 编辑
摘要: .wrap{ width: 100px; height: 100px; display: none; } ... 阅读全文
posted @ 2015-11-07 09:21 Mi文 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 自定义指令无标题文档 -----temp2.html----- {{name}} 22222222 33333333无标题文档 阅读全文
posted @ 2015-10-21 16:07 Mi文 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1、模块同时载入多个模式,html标签要去掉my-app无标题文档 {{name}} {{name}}2、让页面还没有加载完之前不显示html表达式{{***}}的内容无标题文档 --> --> --> {{text}} {{text}}-->对样式的操作无... 阅读全文
posted @ 2015-10-21 10:21 Mi文 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 ajax.jsfunction ajax(method, url, data, success) { var xhr = null; try { xhr = new XMLHttp... 阅读全文
posted @ 2015-10-09 17:15 Mi文 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-10-09 10:35 Mi文 阅读(212) 评论(0) 推荐(0) 编辑
摘要: body{//在body上加上,一般针对上下滚动条 overflow:hidden; -webkit-overflow-scrolling:touch;} 阅读全文
posted @ 2015-10-07 21:05 Mi文 阅读(180) 评论(0) 推荐(0) 编辑
摘要: display:-webkit-flex;justify-content:center;//水平align-items:center;//垂直 阅读全文
posted @ 2015-10-07 20:45 Mi文 阅读(839) 评论(0) 推荐(0) 编辑