03 2021 档案
摘要:let OSS = require('ali-oss'); let client = new OSS({ region: '配置自己的', //云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,部署在服务端使用RAM子账号或STS,部署在客户端使用STS。 accessKey
阅读全文
摘要:vue中获取dom可以通过ref,在点击事件中,也可以通过event.target得到当前点击的元素。 今天发现了另外一种,通过自定义指令,实现获取当前dom: Vue.directive("run", { inserted (el, binding) { if (typeof binding.va
阅读全文
摘要:1、push方法: 跳转传参: query传参 参数会在链接后面显示 this.$router.push({ path: "/home", query: { id: 1 }, }); params传参 参数不会显示在链接后面 this.$router.push({ name: "/home", pa
阅读全文

浙公网安备 33010602011771号