随笔分类 - js
摘要:if (window !== top) { top.location.href = "a"; } else { window.location.href = "b"; } 其实就是 top.location.href 和 window.location.href 的区别
阅读全文
摘要:在跳转iframe的时候 把 iframe 存储下来刷新后判断是否存在保存的iframe如果有 就赋值 sliderClick(i, item) { this.sIndex = item.id; this.toggleSlider = true; this.iframeId = item.id; t
阅读全文
摘要:function request({ url, data, method }) { uni.showLoading({ title: '加载中...' }); return new Promise((resolve, reject) => { // alert('token',getLocalSto
阅读全文
摘要:来自 :https://blog.csdn.net/qq_37041819/article/details/116597572 侵删 1.引入element-ui upload组件 <el-upload class="avatar-uploader" :headers="myHeaders" :ac
阅读全文
摘要:<template> <div class="department-container"> <p>栏目管理</p> <div style="display: flex; margin: 10px 0"> <Button type="primary" @click="addNew">新增栏目</But
阅读全文
摘要:来自:https://www.cnblogs.com/niexianda/p/14482157.html 侵删 先看结果 结果 [ { "id": 1, "title": "张三", "parent_id": -1, "childs": [ { "id": 2, "title": "张小二", "p
阅读全文
摘要:function getNowFormatDate() { var date = new Date(); var seperator1 = "-"; var seperator2 = ":"; //前十分钟时间 var minutes=parseInt("10"); var interTimes=m
阅读全文
摘要:{{ listIndex == 2 ? item.name == "填报时间" ? "填报周期" : item.name : item.name }} <span>{{ chartDataType == 1 ? "园区经济排行" : chartDataType == 2 ? "园区能耗排行" : "
阅读全文
摘要:<FormItem :label="item.name" prop="" v-for="(item, index) in Listnew" class="newformItem" > <Input v-model="item.value" style="width: 340px" type="tex
阅读全文
摘要:if (_temp.dataView) { const _json = JSON.parse(_temp.dataView); const _tempArr = []; Object.keys(_json).forEach((key, index) => { _tempArr.push({ valu
阅读全文
摘要:var websock = null; var globalCallback = null; // 初始化weosocket function initWebSocket() { // ws地址 -->这里是你的请求路径 // var ws = `ws://192.168.79.185:8089/p
阅读全文
摘要:<template> <div class="container"> <div class="earth-container"> <div class="earth-item-box"> <div class="earth-item"></div> </div> <div class="earth-
阅读全文
摘要:https://www.jianshu.com/p/a2a7d3a9cf2b 侵删 1、安装vue-seamless-scroll npm install vue-seamless-scroll --save 2、引入组件 <vue-seamless-scroll></vue-seamless-sc
阅读全文
摘要:来自 https://www.cnblogs.com/tuspring/p/9801603.html 侵删 vue-countTo是一个无依赖,轻量级的vue组件,可以自行覆盖easingFn。 你可以设置 startVal 和 endVal,它会自动判断计数或倒计时。支持vue-ssr。vue-c
阅读全文
摘要:来自:https://www.cnblogs.com/taohuaya/p/10274993.html#%E5%A6%82%E4%BD%95%E5%9C%A8vue-cli3.0%E4%B8%AD%E4%BD%BF%E7%94%A8postcss-plugin-px2rem%C2%A0%E6%8F%
阅读全文