body {background-color: #c3c3c3}
上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 1.组件隐藏 2.组件函数式跳转 3.路由传参 简单方法 接收参数 5.@路径和关闭语法提醒 阅读全文
posted @ 2023-12-20 20:48 最美胡萝卜 阅读(16) 评论(0) 推荐(0)
摘要: var array=[13,5,20,15,48,68] console.log("原数组"+array) // 第一个 组合字符串 // var news=array.join("//0") // 第二个 删除最后一个元素,返回最后一个值 // var news= array.pop(); shi 阅读全文
posted @ 2023-12-19 16:42 最美胡萝卜 阅读(11) 评论(0) 推荐(0)
摘要: 二、数组操作 1. chunk _.chunk(array, [size]) 函数可以将一个数组按照指定的大小分割成若干个数组,返回一个新的二维数组。 const arr = ['a', 'b', 'c', 'd', 'e']; const result = _.chunk(arr, 3); con 阅读全文
posted @ 2023-12-19 09:18 最美胡萝卜 阅读(100) 评论(0) 推荐(0)
摘要: <button onclick="showModal()">显示弹窗</button> <div id="myModal"> <p>这是弹窗内容</p> <span id="asd"> asdas </span> </div> <script> // 获取弹窗和按钮 var modal = docu 阅读全文
posted @ 2023-12-15 11:50 最美胡萝卜 阅读(32) 评论(0) 推荐(0)
摘要: module.exports = { presets: [ '@vue/cli-plugin-babel/preset',["@babel/preset-env", { "modules": false }] ], plugins: [ [ "component", { "libraryName": 阅读全文
posted @ 2023-12-14 21:06 最美胡萝卜 阅读(9) 评论(0) 推荐(0)
摘要: 一 安装对应版本的VueRouter 二在main.js做相关操作 import Vue from 'vue' import App from './App.vue' //引入路由配置文件 import router from './router/index.js' Vue.config.produ 阅读全文
posted @ 2023-12-14 19:10 最美胡萝卜 阅读(19) 评论(0) 推荐(0)
摘要: 兄弟组件传数据: 一:main.js中 定义全局事件: new Vue({ render: h => h(App), // 传参用 beforeCreate() { Vue.prototype.$bus=this //全局事件总线 } }).$mount('#app') 二 事件发送数据组件: ch 阅读全文
posted @ 2023-12-14 00:23 最美胡萝卜 阅读(10) 评论(0) 推荐(0)
摘要: 2.取消头部 { "path": "pages/index/index", "style": { // "navigationBarTitleText": "uni-0app" "navigationStyle": "custom" //取消头部 } },flex布局 display: flex; 阅读全文
posted @ 2023-12-06 12:59 最美胡萝卜 阅读(74) 评论(0) 推荐(0)
摘要: 1. 子组件给父子件传参 然后循环2 v -for = "(sel,selindex) in selectalls" 括号中间逗号3. 给数据的每个对象插入属性值 vm.$data.all.map(item => { vm.$set(item, 'selectNum', 0) vm.$set(ite 阅读全文
posted @ 2023-11-30 22:23 最美胡萝卜 阅读(46) 评论(0) 推荐(0)
摘要: 嵌套选项卡 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="js/vue. 阅读全文
posted @ 2023-11-30 10:50 最美胡萝卜 阅读(11) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 12 下一页
body {background-color: #c3c3c3}