需要安装一个Html编辑器提示报错
You are using the runtime-only build of Vue where the template compiler is not available.
document.body.addEventListener('touchmove', function (e) {
e.preventDefault();
}, {passive: false});
<meta
http-equiv="Content-Security-Policy"
content="script-src 'self' 'unsafe-eval' 'unsafe-inline' ;
object-src xxx.xxx.com ;
style-src 'unsafe-inline' xxx.xxx.com;
<script src="http://wximg.qq.com/wxp/libs/wxmoment/0.0.4/wxmoment.min.js"></script>
<script>
new WxMoment.OrientationTip();
</script>
微信的WeixinJSBridge 自动关闭当前浏览器内置函数
WeixinJSBridge.call('closeWindow');
WeixinJSBridge的隐藏函数
WeixinJSBridge.call('hideToolbar'); //隐藏右下面工具栏
WeixinJSBridge.call('showToolbar'); //显示右下面工具栏
var form = new FormData()
form.append('file', vm.$refs.upload.files[0])
form.append('id', id)
form.append('type', type)
var config = {
// 进度
x-webkit-airplay="true",x5-playsinline="true",
webkit-playsinline="true",playsinline="true"
x-webkit-airplay="true" 支持Airplay的设备
webkit-playsinline="true" 播放视频不全屏,ios7+
外部scss添加 postcss
首先 install postcss-loader
然后在utils文件的中添加 postcss-loader 相关部分
exports.cssLoaders = function (options) {
options = options || {}
var cssLoader = {
nzh 数字转中文
qrious 二维码生成
js-md5 md5
js-cookie 客户端cookie
hyperdown markdown 解析
hyperdown
markdown
解析一款SegmentFault
开源的markdown
解析库
github地址: https://github.com/SegmentFault/HyperDo
SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ npm install node-sass