摘要: MQTT.js 是一个开源项目,支持 nodejs 和 Browser js ,这里对比一下 nodejs 和 Browser js 的用法:注:nodejs是运行在webserver的js,Browser js意思是运行在浏览器上的js,也就是H5用到的js注:目前项目方已经提供 CDN,不需要自 阅读全文
posted @ 2022-11-09 13:50 sunshine233 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 官方文档: https://www.iconfont.cn/help/detail?spm=a313x.7781069.1998910419.d8d11a391&helptype=code demo地址: https://gitee.com/twoflowers/custom-font-file.g 阅读全文
posted @ 2022-07-26 14:57 sunshine233 阅读(595) 评论(0) 推荐(0) 编辑
摘要: Element Select分组选择器的结构如下: <el-select > <el-option-group > <el-option></el-option> </el-option-group> </el-select> Select分组选择器的基础用法(不使用 value-key ): <e 阅读全文
posted @ 2022-07-11 14:04 sunshine233 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 0. 新建js文件 demo.js(编译器:vscode) axios 的基础使用: 1. 引入 axios: const axios = require('axios'); 2. 测试用接口(来自黑马课程,查询到的是假数据): var weatherList;//node.js不支持中文,直接写" 阅读全文
posted @ 2022-06-30 17:03 sunshine233 阅读(744) 评论(2) 推荐(0) 编辑
摘要: vue2中echarts的安装和显示中国地图:https://www.cnblogs.com/sunshine233/p/16140522.html 鼠标事件: https://echarts.apache.org/zh/api.html#echartsInstance.on echarts.get 阅读全文
posted @ 2022-04-14 15:18 sunshine233 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: 1、 npm 安装 echarts4.9(全局引入不支持5.0) npm install echarts@4.9.0 2、 main.js中全局引入echarts: //main.js import echarts from 'echarts' Vue.prototype.$echarts = ec 阅读全文
posted @ 2022-04-13 15:36 sunshine233 阅读(7689) 评论(0) 推荐(0) 编辑
摘要: 0. 组件和插槽区别 组件是Vue插槽中最为关键的一个特性之一,而插槽是组件的一大亮点。插槽是为组件服务的,让组件更灵活多用。 1. 默认插槽、具名插槽的通用格式(#myName 是 v-slot:myName的缩写):建议使用通用格式 <template> 元素中的所有内容都将会被传入相应的插槽。 阅读全文
posted @ 2022-04-06 15:55 sunshine233 阅读(1617) 评论(0) 推荐(0) 编辑
摘要: watch 监听 data 中的数值,需要先在watch:{ } 中绑定要监听的值,监听的数值只要变化,就执行 watch 1. 默认情况下,变量被初始化的时候,watch 不会立即执行,如果想要立即执行,使用 watch 的immediate 属性。 2. 如果watch监听的是一个对象,则对象中 阅读全文
posted @ 2022-04-01 14:30 sunshine233 阅读(375) 评论(0) 推荐(0) 编辑
摘要: demo.js var arrayList = [{ id: 1, name: "zs", scope: 56 }, { id: 2, name: "ls", scope: 86 }, { id: 3, name: "wu", scope: 22 }, { id: 4, name: "cl", sc 阅读全文
posted @ 2022-03-30 17:32 sunshine233 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 参考网址: [1] https://www.freesion.com/article/7191968296/ [2] http://www.axios-js.com/zh-cn/docs/ [3] https://github.com/axios/axios/blob/master/README.m 阅读全文
posted @ 2022-03-15 10:22 sunshine233 阅读(464) 评论(3) 推荐(0) 编辑