07 2022 档案

摘要:跨域 #region CORS 跨域 services.AddCors(options => { options.AddPolicy("any", builder => { builder .AllowAnyHeader() .AllowAnyMethod() .AllowAnyOrigin(); 阅读全文
posted @ 2022-07-26 09:36 贾平凡 阅读(65) 评论(0) 推荐(0) 编辑
摘要:父访问子:this.$children或this.$refs.ref(vue3中children已废弃) 子访问父:this.$parent和this.$root 父访问子 this.$refs.bb.name 子访问父 this.$root.message 阅读全文
posted @ 2022-07-21 14:56 贾平凡 阅读(33) 评论(0) 推荐(0) 编辑
摘要:子传父 vue子传父使用$emit传值 子组件: <template> <div> <button @click="toParent">点击传到父级</button> </div> </template> <script> export default { name: 'child', method 阅读全文
posted @ 2022-07-21 11:35 贾平凡 阅读(1525) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示