会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
番茄西红柿
博客园
首页
新随笔
联系
订阅
管理
2025年10月28日
ts相关
摘要: 1、常用类型工具
阅读全文
posted @ 2025-10-28 17:27 番茄西红柿u
阅读(2)
评论(0)
推荐(0)
2025年4月7日
echarts dataZoom控制滚轮滚动而不是缩放
摘要: const lnbsInit = () => { const chartEle: HTMLElement = document.getElementById("echarts1") as HTMLElement; // chartEle.removeAttribute("_echarts_insta
阅读全文
posted @ 2025-04-07 15:18 番茄西红柿u
阅读(181)
评论(0)
推荐(0)
2024年11月1日
项目添加埋点
摘要: 1、稳定性埋点 index.html中添加埋点代码 <script src='https://wpkgate-emas.ding.zj.gov.cn/static/wpk-jssdk.1.0.2/wpkReporter.js' crossorigin='true'></script> <script
阅读全文
posted @ 2024-11-01 10:40 番茄西红柿u
阅读(42)
评论(0)
推荐(0)
2024年10月9日
lodash中_.find()
摘要: Lodash是一个流行的JavaScript工具库,提供了许多实用的函数来简化开发过程。 在一个数组中查找满足条件的第一个元素。接受两个参数 要查找的数组和判断条件 const users = [ { id: 1, name: 'Alice' }, { id: 2, name: 'Bob' }, {
阅读全文
posted @ 2024-10-09 09:09 番茄西红柿u
阅读(190)
评论(0)
推荐(0)
2024年7月29日
tsx与在vue中的运用
摘要: 转 1、vue中使用 有两种写法:选项式、函数式 //选项式 <script lang="tsx"> import {defineComponent } from 'vue' export default defineComponent({ setup() { return () => (<div>
阅读全文
posted @ 2024-07-29 15:02 番茄西红柿u
阅读(31)
评论(0)
推荐(0)
2024年5月17日
element-plus table部分列根据接口返回key展示
摘要: 实现效果根据刷选年份返回对应年份作为部分列 1. 处理接口数据 接口返回数据格式 需要处理成 处理过程 data.message && data.message.forEach((item:any)=>{ let obj = {} for(var key in item){ if(Number(ke
阅读全文
posted @ 2024-05-17 14:08 番茄西红柿u
阅读(154)
评论(0)
推荐(0)
2023年12月8日
微信公众号网页中打开高德地图
摘要: toDaohang(point){ let that = this //打开高德 Dialog.confirm({ title: '', message: '打开高德地图', }) .then(() => { let str = [] if(point!=''){ str = point.split
阅读全文
posted @ 2023-12-08 10:58 番茄西红柿u
阅读(606)
评论(0)
推荐(0)
2023年10月9日
vue3+ts中使用echarts
摘要: 1. 下载 npm install -S echarts 2.使用 方法一(推荐使用) <div class="echart_box" ref="echartDom"></div> <script setup lang="ts"> import * as echarts from "echarts"
阅读全文
posted @ 2023-10-09 17:12 番茄西红柿u
阅读(837)
评论(0)
推荐(0)
2023年9月22日
vue3中使用pinia
摘要: 1、 安装引入 npm install pinia main.ts中挂载 import { createPinia } from 'pinia' const pinia = createPinia(); app.use(pinia); 2、src下新建 store 文件夹(不同模块建立不同文件,在i
阅读全文
posted @ 2023-09-22 14:08 番茄西红柿u
阅读(164)
评论(0)
推荐(0)
2023年2月13日
Vue接口地址管理
摘要: 项目中有些时候会调用不同的的环境接口地址,统一进行管理便于切换 1. static文件夹下新建 config.js: (static/ 目录下的文件并不会被Webpack处理:它们会直接被复制到最终的打包目录(默认是dist/static)下) const URLList = { hotel:{ b
阅读全文
posted @ 2023-02-13 11:32 番茄西红柿u
阅读(110)
评论(0)
推荐(0)
下一页
公告