上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: var el = document.createElement('pre'); // 创建 元素 el.id = 'sss'; // 添加id document.body.appendChild(el); // 把它 加入到body的底部去 el = document.getElementById('sss'); // 访问dom 根据id得到... 阅读全文
posted @ 2016-08-25 18:21 wifix 阅读(830) 评论(0) 推荐(0) 编辑
摘要: angular里的service是一个单例对象,在应用生命周期结束的时候(关闭浏览器)才会被清除。而controllers在不需要的时候就会被销毁了。 factory是angular里的一种service. Angular里面创建service最简单的方式是使用factory()方法。 例子 什么时 阅读全文
posted @ 2016-08-25 15:09 wifix 阅读(8328) 评论(0) 推荐(2) 编辑
摘要: markdown语法 # 一级标题 (最大) ## 二级标题 (其次) ... 6级标题后台(无序列表 - 或 *)* xx* xx* xx有序列表1. xxx2. xxx3. xxx引用> xxxx插入链接[baidu](http://baidu.com)插入图片![baidu](http://b 阅读全文
posted @ 2016-08-23 15:06 wifix 阅读(193) 评论(0) 推荐(0) 编辑
摘要: input::-webkit-input-placeholder{ color: white !important;}input:-moz-placeholder{ color: white !important;}input::-moz-placeholder{ color: white !imp 阅读全文
posted @ 2016-08-19 16:11 wifix 阅读(340) 评论(0) 推荐(0) 编辑
摘要: html: <div class="spilt"> <span class="left"></span> <span class="title">活动说明</span> <span class="right"></span></div> css: .spilt{ line-height: 30px; 阅读全文
posted @ 2016-08-18 16:53 wifix 阅读(1680) 评论(0) 推荐(0) 编辑
摘要: fixIME(); function fixIME(){ scroll_y = 100; // 如果键盘弹起后 网页window对象的卷起小于此值,说明没有自动卷起 单位:px timer = 500; //focus事件中500ms后进行判断 因为调起输入法键盘本身会有一定时间的延时 max_sc 阅读全文
posted @ 2016-08-18 15:54 wifix 阅读(1968) 评论(0) 推荐(0) 编辑
摘要: css: .bg { width: 100%;height:auto; } .content{width:100%;min-height:100px;} html: <div id="img_bg"><img class="bg" src="/zhannew/statics/images/cdz/r 阅读全文
posted @ 2016-08-18 15:23 wifix 阅读(391) 评论(0) 推荐(0) 编辑
摘要: compass 参考网址: http://compass-style.org/help/ 阅读全文
posted @ 2016-08-05 14:51 wifix 阅读(249) 评论(0) 推荐(0) 编辑
摘要: //打开数据库var db = new sqlite3.Database('xx.db');// 关闭数据库db.close();db.run('xx'); // 数据库对象的run函数可以执行任何的SQL语句,该函数一般不用来执行查询 // create alter 之类的增:var stmt = 阅读全文
posted @ 2016-08-02 18:01 wifix 阅读(6232) 评论(0) 推荐(0) 编辑
摘要: ftp命令:参考:http://linuxso.com/command/ftp.htmlhttp://www.linuxidc.com/Linux/2012-12/77043.htm (上传文件到服务器的Linux命令)use:ftp [-dignv][主机名称或IP地址]参 数: -d 详细显示指 阅读全文
posted @ 2016-06-21 15:07 wifix 阅读(3392) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页