上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: display:inline-block 当文字内容超过最大限制宽度时会换行 width:max-content 当文字内容超过最大限制宽度时不换行 display:inline-block具有收缩特性,但是,当(例如这里的)描述文字超过一行显示的时候,其会这行,不会让自身的宽度超过父级容器的可用空 阅读全文
posted @ 2021-01-24 14:58 青幽草 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: <template> <view> <scroll-view scroll-x class="scroll-view_H"> <!-- <view class="scrollbox"> --> <block v-for="(item,index) in menuList"> <view :class 阅读全文
posted @ 2020-10-05 09:21 青幽草 阅读(355) 评论(0) 推荐(1) 编辑
摘要: 用CSS实现多行溢出隐藏的代码非常简单,但是兼容性也相对较低。 word-break:break-all; display:-webkit-box;/**对象作为伸缩盒子模型展示**/ -webkit-box-orient:vertical;/**设置或检索伸缩盒子对象的子元素的排列方式**/ -w 阅读全文
posted @ 2020-09-09 14:05 青幽草 阅读(2951) 评论(0) 推荐(0) 编辑
摘要: 页面vue文件中请求方法uni.request({ //获取信息 url: getApp().globalData.https + '/api.php/Index/index', data: {}, method: 'POST', header: getApp().globalData.header 阅读全文
posted @ 2020-09-07 17:33 青幽草 阅读(2412) 评论(0) 推荐(0) 编辑
摘要: <template> <view> <input type="text" v-model="text" placeholder="输入.........."> <button type="default" @click="serachFn">搜索</button> <view> <view clas 阅读全文
posted @ 2020-09-05 13:11 青幽草 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 跳转到tabbar页面 注意 跳转到tabbar页面及open-type="switchTab"不可以带参数 <navigator url="../index/index" open-type="switchTab">跳转到首页</navigator> <navigator :url="'/page 阅读全文
posted @ 2020-09-05 10:04 青幽草 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: uni-app介绍 下载微信开发者工具 运行uniapp 在浏览器中运行 HBuilder中 工具-设置-运行设置 配置微信开发者工具安装目录 微信开发者工具 设置-安全设置-开启服务端口 真机运行???? uniapp配置文件 pages.json 1 { 2 "pages": [ //pages 阅读全文
posted @ 2020-09-04 14:38 青幽草 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-02 12:58 青幽草 阅读(169) 评论(0) 推荐(0) 编辑
摘要: es5中默认参数写法与es6中默认参数写法 es6之前采用变通方法 function f(x, y, z) { y=y||7; z=z||42; return x + y + z; } console.log(f(1)); //50 console.log(f(1,"",0)); //50 存在问题 阅读全文
posted @ 2020-08-31 09:35 青幽草 阅读(2173) 评论(0) 推荐(0) 编辑
摘要: 在Javascript中什么是伪数组?如何将伪数组转化为标准数组? 无法直接调用数组方法或期望length属性有什么特殊的行为,不具有数组的push,pop等方法,但仍可以对真正数组遍历方法来遍历它们。典型的是函数的argument参数,还有像调用getElementsByTagName,docum 阅读全文
posted @ 2020-08-19 20:56 青幽草 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页