摘要: let arr = [4,3,5,2,1]foi (let i = 0; i <arr.length - 1; i++) { for (let j = 0; j < arr.length - 1 - i; j++) { if (arr[j] < arr[j + 1]) { let swap = ar 阅读全文
posted @ 2020-02-26 11:20 sosolucky 阅读(258) 评论(0) 推荐(0) 编辑
摘要: .div{ width: 98%; margin: auto; color: #ccc; display:block; overflow:hidden; word-break:keep-all; white-space:nowrap; text-overflow:ellipsis;} 阅读全文
posted @ 2020-01-22 21:13 sosolucky 阅读(1649) 评论(0) 推荐(0) 编辑
摘要: 记录这条问题完全因为太气人了 使用tabs一定要注意:要用<el-row> <el-col :span="数字"></el-col> </el-row> 包裹起来 <el-row> <el-col :span=''24''> <el-tabs v-model="activeName" @tab-cl 阅读全文
posted @ 2020-01-08 17:31 sosolucky 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 1、标题栏 <link rel="icon" href="ico地址" type="image/x-icon"> 2、收藏栏 <link rel="shortcut icon" href="ico地址" type="image/x-icon"> 注意: 图标要用 16*16 色的。。。(保证了兼容性 阅读全文
posted @ 2020-01-07 10:04 sosolucky 阅读(134) 评论(0) 推荐(0) 编辑
摘要: *{ margin:0; padding:0;}html,body,#app{ height: 100%; width: 100%; min-width: 1300px; margin: 0; overflow: hidden; /*font-family: "Helvetica Neue",Hel 阅读全文
posted @ 2020-01-04 11:26 sosolucky 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: <div style="width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;" :title="item.address"> <span>地址:</span><span>{{item.address}}</span 阅读全文
posted @ 2019-12-30 15:08 sosolucky 阅读(615) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.format = function (fmt) { var o = { 'M+': this.getMonth() + 1, // 月份 'd+': this.getDate(), // 日 'h+': this.getHours(), // 小时 'm+': this 阅读全文
posted @ 2019-12-20 15:58 sosolucky 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1、HTML <audio ref='audio' > <source type="audio/mpeg"></audio> 2、script data () { return { src: '', alarmSrc: [ {src: '/static/audio/callalarm.mp3'}, 阅读全文
posted @ 2019-12-03 17:43 sosolucky 阅读(2934) 评论(0) 推荐(0) 编辑
摘要: 报错 TypeError: Cannot read property 'resetFields' of undefined resetForm(formName) { if (this.$refs[formName]!==undefined) { this.$refs[formName].reset 阅读全文
posted @ 2019-11-26 18:28 sosolucky 阅读(844) 评论(0) 推荐(0) 编辑
摘要: 1、HTML <div class="line1" id="bar" ref="bar_wrap"></div> 2、style .line1{ width: 100%; height: 90%; min-width: 507px; min-height: 344px;} 3、script impo 阅读全文
posted @ 2019-11-25 13:56 sosolucky 阅读(649) 评论(0) 推荐(0) 编辑