摘要:
module.exports = { publicPath:'/manager_cjl', //将所有文件打包在manager_cjl下 outputDir:'dist', //指定打包后的目录 assetsDir:"static", //css、img、js、font等资源 //webpack配置 阅读全文
posted @ 2021-04-15 18:16
阿杰啊啊
阅读(1659)
评论(0)
推荐(0)
摘要:
public目录下的index.html原配置,icon图标不显示,netWork也不加载favicon.ico 解决方法:将上面圈住的内容加上/,如下即可<link rel="icon" href="<%= BASE_URL %>/favicon.ico"> 阅读全文
posted @ 2021-04-15 18:13
阿杰啊啊
阅读(1296)
评论(0)
推荐(0)
摘要:
在vue-cli3中,存放静态资源的位置已经变成存放在public文件夹中了,不是在static中了 阅读全文
posted @ 2021-04-15 18:11
阿杰啊啊
阅读(2270)
评论(0)
推荐(0)
摘要:
vue-cli2 proxyTable: { // proxy all requests starting with /api to jsonplaceholder '/api': { target: 'http://localhost:1337', //目标服务器,注意要到端口号 changeOr 阅读全文
posted @ 2021-04-15 18:10
阿杰啊啊
阅读(747)
评论(0)
推荐(0)
摘要:
1.父传子props 2.子传父emit 3.vuex 阅读全文
posted @ 2021-04-15 16:41
阿杰啊啊
阅读(165)
评论(0)
推荐(0)
摘要:
1.params方法 a页面 this.$router.push({path:`/addressEdit/${item.id}`}) b页面接收: created(){ console.log(this.$route.params.id) } 2. query方法 a页面 this.$router. 阅读全文
posted @ 2021-04-15 16:39
阿杰啊啊
阅读(218)
评论(0)
推荐(0)
摘要:
## git使用 1、设置name和email 最好是GitHub的用户名和邮件 git config --global user.name "yourname" git config --global user.email "youremail"2、将文件添加到暂存区:git add index. 阅读全文
posted @ 2021-04-15 16:33
阿杰啊啊
阅读(62)
评论(0)
推荐(0)
摘要:
1.在GitHub或码云上新建仓库,在新建个目录新建“本地仓库”文件夹,git init生成一个.git文件夹, 2.在“本地仓库”目录下将新建的远程仓库clone下来(为了同步README.md),再将自己的项目放进来和README.md同级的目录下git clone https://gitee. 阅读全文
posted @ 2021-04-15 16:31
阿杰啊啊
阅读(597)
评论(0)
推荐(0)
摘要:
1、在app.json里添加 "navigateToMiniProgramAppIdList": [ "目标小程序的appid" ]} 2、在使用的页面里添加wx.navigateToMiniProgram({ appId: '目标小程序的appid', path: '', envVersion: 阅读全文
posted @ 2021-04-15 16:23
阿杰啊啊
阅读(180)
评论(0)
推荐(0)
摘要:
步骤: 1.在app.js页面登录时候获取code,传给后端去请求openid,返回给前端存到全局变量里;2.做一个点击“接收消息通知”的按钮,一当用户点击按钮时就将其openid传给后端存起来;3.服务器定时,比如每天18:00,去查找openid表里面的openid,遍历给这些openid发送消 阅读全文
posted @ 2021-04-15 16:21
阿杰啊啊
阅读(191)
评论(0)
推荐(0)
摘要:
方法一: request.js export const baseUrl = ""; export default function request(options){ return new Promise((resolve,reject)=>{ wx.request({ async:false, 阅读全文
posted @ 2021-04-15 16:13
阿杰啊啊
阅读(158)
评论(0)
推荐(0)
摘要:
一、获取access_token wx.request({ url: 'https://api.weixin.qq.com/cgi-bin/token', method : 'GET', data : { grant_type: 'client_credential', appid: '小程序的ap 阅读全文
posted @ 2021-04-15 16:11
阿杰啊啊
阅读(248)
评论(0)
推荐(0)
摘要:
(1)路由跳转以及事件监听1.wx.navigateTo1)保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面,左上角有返回上一页按钮2)会触发当前页面的onHide()2.wx.redirectTo1)关闭当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面,左上 阅读全文
posted @ 2021-04-15 16:07
阿杰啊啊
阅读(1307)
评论(0)
推荐(0)
摘要:
1、 解析链接时会因为带空格解析不到,需要去空格 1)、去掉所有空格 str=str.replace(/\s+/g,""); 2)、去掉两头空格 str=str.replace(/^\s+|\s+$/g,"");//js去掉两头空格 3)、去做空格 str=str.replace( /^\s*/, 阅读全文
posted @ 2021-04-15 16:06
阿杰啊啊
阅读(89)
评论(0)
推荐(0)

浙公网安备 33010602011771号