会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
贝尔塔猫
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
52
53
54
55
56
57
58
59
60
···
67
下一页
2016年9月30日
js 检查是否为手机端
摘要: let isMobile = function(){ let userAgentInfo = navigator.userAgent; let Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod") let f...
阅读全文
posted @ 2016-09-30 09:22 贝尔塔猫
阅读(227)
评论(0)
推荐(0)
2016年9月27日
解决Enter键与input 、a标签触发的事件的冲突
摘要: 无论是 <button type="button" onclick="console.log('123');">123</button> 还是 <a href="#" onclick="console.log('123');">测试链接</a> 在点击并且触发完事件后,当我们继续按下enter键时。
阅读全文
posted @ 2016-09-27 14:26 贝尔塔猫
阅读(825)
评论(0)
推荐(0)
js 将一段html插入到body最前面
摘要: var wrap=document.createElement("div"); var first=document.body.firstChild;//得到页面的第一个元素 var wraphtml=document.body.insertBefore(wrap,first);
阅读全文
posted @ 2016-09-27 10:35 贝尔塔猫
阅读(9147)
评论(0)
推荐(0)
2016年9月23日
Js navigator.onLine 获取设备是否可以上网、连接网络
摘要: http://zccst.iteye.com/blog/2194229 获取用户的联网状态 监听事件
阅读全文
posted @ 2016-09-23 12:26 贝尔塔猫
阅读(3291)
评论(1)
推荐(0)
2016年9月20日
关于web-dev-server 记录
摘要: package.json server.js —— 类似express构建http服务
阅读全文
posted @ 2016-09-20 22:12 贝尔塔猫
阅读(432)
评论(0)
推荐(0)
2016年9月19日
mongoDB 简单使用
摘要: mongodb传送门: 下载后默认是在:C:\Program Files\MongoDB\Server\3.2\bin 进入bin目录,使用以下命令开启数据库服务(需要先创建E:\MongoDB_Path) $ ./mongod --dbpath "E:\MongoDB_Path" 此时界面会停在2
阅读全文
posted @ 2016-09-19 17:35 贝尔塔猫
阅读(427)
评论(0)
推荐(0)
2016年9月12日
NPM 模块恩仇录
摘要: vue-clickoutside 点击元素以外的东西时会触发的事件。好东西。其实可以利用全局event来判断当前点击的对象来判断也一样。但这个显然更舒服 传送门:https://www.npmjs.com/package/vue-clickoutside request-promise reques
阅读全文
posted @ 2016-09-12 12:22 贝尔塔猫
阅读(387)
评论(0)
推荐(0)
2016年9月8日
html background 背景颜色美化 类似毛玻璃
摘要: 制作高大上背景颜色
阅读全文
posted @ 2016-09-08 01:48 贝尔塔猫
阅读(5282)
评论(0)
推荐(0)
2016年9月4日
HTML - 毛玻璃 滤镜 模糊
摘要: css 秘密花园 http://dabblet.com/gist/d9f243ddd7dbffa341a4 场景,背景图片 + 毛玻璃遮盖 原理:利用background的cover特性,将毛玻璃的区域和大背景的区域一致,然后再加上 filter: blur(5px); 进行模糊,之后还得加上mar
阅读全文
posted @ 2016-09-04 21:48 贝尔塔猫
阅读(532)
评论(0)
推荐(0)
2016年9月3日
export、exports、modules.exports 和 require 、import 的一些组合套路和坑
摘要: 推荐阅读第三方文章: 引入: require / import 导出:export / module.exports / exports Nodejs 不支持 import 和 export es6 兼容以上所有语法,当然需要 webpack + babel 来支撑 尽管es6兼容以上所有语法,但需
阅读全文
posted @ 2016-09-03 00:35 贝尔塔猫
阅读(13229)
评论(0)
推荐(2)
上一页
1
···
52
53
54
55
56
57
58
59
60
···
67
下一页
公告