摘要: 最终实现效果 实现代码 <template> <div class="item-box" ref="dataComparisonBox"> <div class="equipment-box"> <div class="equipment-item equipment1" :style="`left 阅读全文
posted @ 2023-02-10 16:46 果茶加冰 阅读(1251) 评论(0) 推荐(0) 编辑
摘要: 查询占用netstat -aon|findstr "8080"杀掉端口taskkill /pid **** -f 阅读全文
posted @ 2023-04-21 16:16 果茶加冰 阅读(15) 评论(0) 推荐(0) 编辑
摘要: new Date(new Date().getTime() + 1000 * 60 * 60 * 8).toJSON().substr(0, 19).replace("T", " ") 阅读全文
posted @ 2022-11-11 14:48 果茶加冰 阅读(8) 评论(0) 推荐(0) 编辑
摘要: function ajax(type, url, data) { return new Promise((resolve, reject) => { $.ajax({ type: type, url: url, dataType: 'json', data: data, beforSend: fun 阅读全文
posted @ 2021-08-12 21:27 果茶加冰 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 首先安装vue-router,使用npm install vue-router --save,添加成功后在package.json 文件中可以看到引入的信息 先在 components文件下创建一个index,vue 配置路由内容,在src文件下创建router文件夹以及里面的index.js文件 阅读全文
posted @ 2021-07-23 16:46 果茶加冰 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 新建state.js文件 const person = { state: { aaa: 1111 // 存储共享数据 }, setAaa (val) { // 修改数据 this.state.aaa = val } } export default person 在vue文件中引入state.js文 阅读全文
posted @ 2021-07-12 16:46 果茶加冰 阅读(226) 评论(0) 推荐(0) 编辑
摘要: changeTime (val) { const pattern = /^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})$/ try { return val.replace(pattern, '$1-$2-$3 $4:$5:$6') } catch (erro 阅读全文
posted @ 2021-07-02 15:07 果茶加冰 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 实现效果 <template> <div id="myChart" class="percentage"></div></template><script>export default { name: 'Percentage', data () { return { txIcon: require( 阅读全文
posted @ 2021-07-02 10:55 果茶加冰 阅读(1143) 评论(0) 推荐(1) 编辑
摘要: $.ajax({ type: "post", url: uploadUrl, data: formData, processData: false, contentType: false, xhr : function() { //获取ajaxSettings中的xhr对象,为它的upload属性绑 阅读全文
posted @ 2020-08-07 17:24 果茶加冰 阅读(692) 评论(0) 推荐(0) 编辑
摘要: react 父组件给子组件传参时,父组件直接在引入的子组件内写入要传递的参数即可 <HeaderComponent title={"传递的参数"}></HeaderComponent> 在子组件接收使用props <div id="header"> {this.props.title} </div> 阅读全文
posted @ 2019-11-20 11:52 果茶加冰 阅读(2454) 评论(0) 推荐(1) 编辑