1 2 3 4 5 6 7 8 |
$("#myDiv"). tooltip({ trigger:'hover', html:true, title:'鼠标滑动提示'}).popover({ trigger:'click', placement:'bottom', content:'弹出气泡提示'}); |
月度归档:2017年8月
Layabox编辑器报错 Cannot connect to runtime precess, timeout after 10000 ms
修改launch.json 中prot
Layabox开发之屏幕适配
//设置适配模式
Laya.stage.scaleMode = Stage.SCALE_SHOWALL;
//设置横竖屏
Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL;
//设置水平对齐
Laya.stage.alignH = Stage.ALIGN_CENTER;
//设置垂直对齐
Laya.stage.alignV = Stage.ALIGN_MIDDLE;
Mac .plist还原小图
.plist 还原小图需要运行脚本
在运行脚本的过程中遇到以下问题。python 版本为2.7
执行脚本报错:ImportError: No module named PIL
安装PIL又报错:
1 |
<span class="pln">easy_install PIL</span> |
ImportError: No module named extern
暂无解决方案
采取方案为安装python3.0
查看python路径
which Python
AppH5下载页
链接示例:
http://banmi.com/app2017/download.html
http://www.yuelego.com/
判断是否在微信中打开
1 2 3 4 5 6 7 |
var ua = navigator.userAgent.toLowerCase();var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") { }else{ } |
APP下载页有哪些注意事项,需要避开哪些坑?
Android实现通过浏览器点击链接打开本地应用(APP)并拿到浏览器传递的数据
判断当前页面是否在微信浏览器中打开
1 2 3 4 5 6 7 |
var ua = navigator.userAgent.toLowerCase(); var isWeixin = ua.indexOf('micromessenger') != -1; if (isWeixin) { return true; }else{ return false; } |
Express的模板直接使用HTML
1. 安装ejs
在项目根目录安装ejs.
1 |
npm install ejs |
2、引入ejs
1 |
var ejs = require('ejs'); //我是新引入的ejs插件 |
3、设置html引擎
1 |
app.engine('html', ejs.__express); |
设置视图引擎
1 |
app.set('view engine', 'html'); |
保存后重启服务,即可访问html文件。
fatal: remote origin already exists.
如果输入 git remote add origin https://github.com/(user_name)/(app_name).git
提示出错信息:fatal: remote origin already exists.
解决办法如下:
1、先输入 git remote rm origin
2、再输入 git remote add origin https://github.com/(user_name)/(app_name).git 就不会报错了!
mac 下运行.sh文件出现 Permission denied问题
mac 下运行.sh文件出现 Permission denied错误,主要是文件权限问题,修改文件权限可以解决
比如:
1 |
chmod 777 x.sh |