<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .table{ overflow:auto; width:400px; height:300px; /* 固定高度 */ border:1px solid #999; border-bottom: 0; border-right: 0; } table { border-collapse:separate; table-layout: fixed; width: 100%; /* 固定寬度 */ } td, th { border-right :1px solid #999; border-b

配置页面可分享onShareAppMessage(options) { return this.getPageShareParam(options); }返回Promise对象getPageShareParam(options) { let shareParam = { title: '分享标题', path: '/pages/index/index', imageUrl: '', }; //异步请求 return new Promise((resolve, reject) => { //从远程获取分享参数 httpRequestMethod({param1:1}).then(({res}) => { shareParam.path += '?' + res resolve(shareParam); }).catch(err => { reject(err); }) }); }

常用命令n list // 展示当前安装的所有版本 n 14.17.4 // 安装指定版本 n latest // 安装最新版本 n stable // 安装稳定版本

/** * 微信页面中禁止调教字体大小 */ (function() { if (typeof WeixinJSBridge == 'object' && typeof WeixinJSBridge.invoke == 'function') { handleFontSize() } else { document.addEventListener('WeixinJSBridgeReady', handleFontSize, false) } function handleFontSize() { // 设置网页字体为默认大小 WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 }) // 重写设置网页字体大小的事件 WeixinJSBridge.on('menu:setfont', function() { WeixinJSBridge.inv

表单交互.auth-form-fieldset input:hover,.auth-form-fieldset select:hover,.auth-form-fieldset textarea:hover { border: 1px solid rgba(47,184,241,.4) } .auth-form-fieldset input::-moz-placeholder,.auth-form-fieldset select::-moz-placeholder,.auth-form-fieldset textarea::-moz-placeholder { color: #35506b } .auth-form-fieldset input::placeholder,.auth-form-fieldset select::placeholder,.auth-form-fieldset textarea::placeholder { color: #35506b } .auth-form-fieldset input:focus,.auth-form-f