随笔分类 - Javascript & Vue
摘要:ok,开始迭代v1版本(Vue3+Springboot) 前端是使用WebStorm搭建的Vite(模版为Vue),而里面则一开始使用了bootstrap及layui(旧版本迁移),而后我又看到之前参与的远程项目采用的ant-design-vue,用起来还是很舒服的,所以也就用这套模版框架. 后端就
阅读全文
Vite + ESBuild error: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node
摘要:Vite + ESBuild error: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node Add fsevents to your optimizeDeps exclude in your
阅读全文
摘要:WebStorm创建Vite(Vue模版)项目后: 在main.ts中: import {createApp} from 'vue' // @ts-ignore import {createStore} from 'vuex' import './style.css' // @ts-ignore i
阅读全文
摘要:学习一个技术,最好的入手是从一个问题开始, 问:为什么这个Vue代码在created()或mounted()执行完查询后,此时的transactionList还是undefined呢? <template> {{transactionList}} <div v-for="(v,k,i) in tra
阅读全文
摘要:https://echarts.apache.org/zh/option.html#visualMap-continuous.text
阅读全文
摘要:这里页面的聊天室是使用的弹出层: util.on('lay-on', { 'open-chat-room': function () { layer.open({ title: '项目聊天室', type: 1, offset: 'b', anim: 'slideUp', // 从下往上 area:
阅读全文
摘要:帮朋友 ```javascript function checkTimeAndClick() { // Get current time const currentTime = new Date(); console.log('action a', currentTime); // Define t
阅读全文
摘要:https://github.com/moocstudent/vue-war
阅读全文
摘要:https://github.com/moocstudent/vue-war 昨天通过vue官网建立了vue项目,逐渐看了下组合式/选项式 API的区别 虽然在前几个月里,通过做SH的伙计给的单子接触了VUE ANTD,但是实际 上对其原理未知(难道只能说跟前天面试的一样,问Jquery是跟JS都是
阅读全文
摘要:在 JavaScript 中, null 用于对象, undefined 用于变量,属性和方法。 对象只有被定义才有可能为 null,否则为 undefined。 如果我们想测试对象是否存在,在对象还没定义时将会抛出一个错误。 错误的使用方式: ```js if (myObj !== null &&
阅读全文
摘要:https://stackoverflow.com/questions/59553297/import-js-file-from-public-folder-in-a-vue-component-laravel
阅读全文
摘要:https://www.freecodecamp.org/news/how-to-format-dates-in-javascript/
阅读全文
摘要:vue: <a-col :md="5" :sm="24"> <a-form-item> <a-range-picker :ranges='timeRange' :default-value="[ moment().startOf('month'), moment().startOf('day'),
阅读全文
摘要:let timer = setInterval(() => { this.getUserAccountList() }, 10 * 1000) this.$once('hook:beforeDestroy', () => { clearInterval(timer) timer = null })
阅读全文
摘要:antd vue pro中删除分页数据时,假如该页面数据只还有一条,则删除后,页面刷新会爆出404问题, 解决:判定删除数据的索引 index 判断进行refresh true 还是默认 refresh
阅读全文
摘要:已经返回到列表,通过前端的搜索框再次过滤,而不走查询api。 return getDeviceListByCellIdApi(this.params).then((res) => { // res.results console.log('get cell bind devices') consol
阅读全文
摘要:how does vue query range with Moment array https://stackoverflow.com/questions/14897571/moment-js-date-between-dates https://momentjs.com/docs/#/query
阅读全文
摘要:作为一名本科生,我感觉再提升到硕士是比较困难的一件事, 而即使如此,方向也应该专注。 就比如现在我在t团队的这几天,了解到t团队的一个比较宏观 上的规划后,感觉可以与t团队进行长期的合作方式。 项目内容保密,但就是开发的工作,自由发挥程度还算可以, 从刚开始的被指导,到这几天完成的部分功能,我感觉还
阅读全文