<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[山海也有意难平]]></title><description><![CDATA[好好鬼混]]></description><link>https://blog.csdn.net/weixin_49875821</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_49875821]]></copyright><item><title><![CDATA[tsx写法]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/131225983</link><guid>https://blog.csdn.net/weixin_49875821/article/details/131225983</guid><author>weixin_49875821</author><pubDate>Thu, 15 Jun 2023 13:47:01 +0800</pubDate><description><![CDATA[vite.config.ts 配置。]]></description><category></category></item><item><title><![CDATA[[Vue3]Console报错：类型“any”的参数不能赋给类型“never”的参数]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/131205755</link><guid>https://blog.csdn.net/weixin_49875821/article/details/131205755</guid><author>weixin_49875821</author><pubDate>Wed, 14 Jun 2023 13:12:39 +0800</pubDate><description><![CDATA[错误代码正确代码。]]></description><category></category></item><item><title><![CDATA[释放C盘 清理垃圾的两个命令 (仅记录)]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/127496760</link><guid>https://blog.csdn.net/weixin_49875821/article/details/127496760</guid><author>weixin_49875821</author><pubDate>Mon, 24 Oct 2022 17:19:48 +0800</pubDate><description><![CDATA[释放C盘 清理垃圾的两个命令 (仅记录)]]></description><category></category></item><item><title><![CDATA[ts转义所有字符 例如:“&lt；”如何反转义为“＜”，“&gt；”如何反转义为“＞”]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/127496507</link><guid>https://blog.csdn.net/weixin_49875821/article/details/127496507</guid><author>weixin_49875821</author><pubDate>Mon, 24 Oct 2022 17:11:53 +0800</pubDate><description><![CDATA[ts转义所有字符]]></description><category></category></item><item><title><![CDATA[循环列表 默认选中第一条(变颜色) 点击某一条(变颜色)]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/125218300</link><guid>https://blog.csdn.net/weixin_49875821/article/details/125218300</guid><author>weixin_49875821</author><pubDate>Fri, 10 Jun 2022 11:27:25 +0800</pubDate><description><![CDATA[列表循环改变选中的颜色]]></description><category></category></item><item><title><![CDATA[vue-cli3+ TS 跨域配置之changeOrigin]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/123279804</link><guid>https://blog.csdn.net/weixin_49875821/article/details/123279804</guid><author>weixin_49875821</author><pubDate>Fri, 04 Mar 2022 16:32:23 +0800</pubDate><description><![CDATA[proxyObj['/sx'] = { // 本地后端地址
  target: 'http://192.168.3....', changeOrigin: false, pathRewrite: { '^/sx': 'sx' }
}

module.exports = { // 单位电脑
  devServer: { host: '192.168.3....', port: 8888, proxy: proxyObj }
}

changeOrigin vue3和vue2 默认值 不一样 

踩过的坑: .]]></description><category></category></item><item><title><![CDATA[Unhandled promise rejection TypeError: WebAssembly.instantiate(): Argument 0 must be a buffe]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/122045564</link><guid>https://blog.csdn.net/weixin_49875821/article/details/122045564</guid><author>weixin_49875821</author><pubDate>Mon, 20 Dec 2021 17:05:08 +0800</pubDate><description><![CDATA[***小程序踩过的坑***

一执行事件的代码就报错



不知道哪里错掉了 就上网查了一下 得到的解决方案 还真好使 0-0



总之就是改下版本就好啦
]]></description><category></category></item><item><title><![CDATA[vue3 + TS 实现点击按钮打印功能(vue-easy-print)]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/121929659</link><guid>https://blog.csdn.net/weixin_49875821/article/details/121929659</guid><author>weixin_49875821</author><pubDate>Tue, 14 Dec 2021 16:25:44 +0800</pubDate><description><![CDATA[首先 npm 下载插件


npm install vue-easy-print --save

第二步 对应页面引入文件


import vueEasyPrint from 'vue-easy-print'

这可能会报错 代码检查会报一个找不到这个文件的错



是因为 ts 这里的验证 找不到翻译文件 (.d.ts)

所以我这网上找的解决办法就是在 src 文件下 创建一个 .d.ts


declare module 'vue-easy-print'



紧接着要创建一个 模板 (就是...]]></description><category></category></item><item><title><![CDATA[sessionStorage存储数据和取数据]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/121657587</link><guid>https://blog.csdn.net/weixin_49875821/article/details/121657587</guid><author>weixin_49875821</author><pubDate>Wed, 01 Dec 2021 16:09:26 +0800</pubDate><description><![CDATA[sessionStorage存数据,如果刷新页面,数据仍旧存在,只有关闭页面,数据才消失

打开多个相同的URL的Tabs页面，会创建各自的sessionStorage。
关闭对应浏览器tab，会清除对应的sessionStorage。

存储数据

sessionStorage存储一条数据:


sessionStorage.setItem('userName', data.userName) // 用户姓名存入浏览器





sessionStorage存储多条数据:


this.queryPar.]]></description><category></category></item><item><title><![CDATA[TS定义数组]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/121631610</link><guid>https://blog.csdn.net/weixin_49875821/article/details/121631610</guid><author>weixin_49875821</author><pubDate>Tue, 30 Nov 2021 14:12:13 +0800</pubDate><description><![CDATA[正常 写 = ref ([]) 这样 文件会不识别

导致向数组添加元素 --- push ts找不到push方法


    const arraynct: number[] = [] // 定义整数型数组
    const arraynct: string[] = [] // 定义字符窜型数组
    const arraynct: any[] = [] // 定义任意类型数组

所以需要加上一个定义具体类型的写法
...]]></description><category></category></item><item><title><![CDATA[websocket 握手后台]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/121607608</link><guid>https://blog.csdn.net/weixin_49875821/article/details/121607608</guid><author>weixin_49875821</author><pubDate>Mon, 29 Nov 2021 13:25:37 +0800</pubDate><description><![CDATA[配置文件websocket.ts


/* eslint-disable @typescript-eslint/no-explicit-any */

let websock: any = null // 定义websock变量
// const url = 'ws://127.0.0.1:8080'
const url = 'ws://192.168.3.136:8082/zygk/ws/init.ws?userId=1' // 设定链接地址

// const websocketonopen = (..]]></description><category></category></item><item><title><![CDATA[vue3 RTMP视频流 --- 直播]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/121558598</link><guid>https://blog.csdn.net/weixin_49875821/article/details/121558598</guid><author>weixin_49875821</author><pubDate>Fri, 26 Nov 2021 14:09:02 +0800</pubDate><description><![CDATA[VUE页面


&lt;div class="con monitor"&gt;
    &lt;video
      id="mymain"
      class="video-js vjs-default-skin vjs-big-play-centered"
      preload="auto"
      data-setup='{ "html5" : { "nativeTextTracks" : false } }'&gt;
    &lt;/video&gt;
  &lt;/div&gt.]]></description><category></category></item><item><title><![CDATA[vue3 ts 点击加号添加一行]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/121086591</link><guid>https://blog.csdn.net/weixin_49875821/article/details/121086591</guid><author>weixin_49875821</author><pubDate>Mon, 01 Nov 2021 19:24:43 +0800</pubDate><description><![CDATA[&lt;div style="width: 860px; height: 130px; border: 1px solid gray; margin-bottom: 50px" v-show="addAccountForm" v-for="(item, index) in accountFormDatas.applyNeed" :key="index"&gt;
        &lt;div style="display: flex; margin-top: 10px"&gt;
          &lt.]]></description><category></category></item><item><title><![CDATA[vue3 Element通过v-for循环渲染的form表单验证]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/121086390</link><guid>https://blog.csdn.net/weixin_49875821/article/details/121086390</guid><author>weixin_49875821</author><pubDate>Mon, 01 Nov 2021 19:20:00 +0800</pubDate><description><![CDATA[在我们的业务开发中，有时候会经常遇到动态v-for循环渲染出el-form-item，那么这些动态生成的el-form-item如何来进行表单验证


&lt;el-form :model="accountFormDatas" :inline="true" ref="accountFormRef" label-width="120px" :rules="rulesTwo"&gt;
      &lt;div&gt;
        &lt;el-form-item label="RFID"&gt;
    ]]></description><category></category></item><item><title><![CDATA[基于ts vue3 饿了么组件 表格树状图懒加载回显刷新父级或者子级问题]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/121009833</link><guid>https://blog.csdn.net/weixin_49875821/article/details/121009833</guid><author>weixin_49875821</author><pubDate>Thu, 28 Oct 2021 11:03:42 +0800</pubDate><description><![CDATA[点击新增或者编辑弹窗时 存下父级和当前级id

pid.value = scope.row.id // 当前级
parentPid.value = scope.row.parentId // 父级


// 点击新增编辑 或 删除
const handleAddOrUpdateMenu = (type: any, scope?: any) =&gt; {
      pid.value = scope.row.id // 当前级
      parentPid.value = scope.row.pare.]]></description><category></category></item><item><title><![CDATA[element-ui的upload组件的clearFiles方法的调用]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/120707466</link><guid>https://blog.csdn.net/weixin_49875821/article/details/120707466</guid><author>weixin_49875821</author><pubDate>Mon, 11 Oct 2021 17:19:06 +0800</pubDate><description><![CDATA[方法为清空已上传成功的图片

(为了解决 :点开弹窗 然后上传图片成功之后 关闭弹窗 再次点开弹窗 会显示刚刚上传成功的图片)

组件中加下面这行代码

ref="upload"


        &lt;el-upload
          action="#"
          list-type="picture-card"
          ref="upload"
          :on-change="onCahnge"
          @click="handlePictur.]]></description><category></category></item><item><title><![CDATA[ajax跨域问题]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/120696232</link><guid>https://blog.csdn.net/weixin_49875821/article/details/120696232</guid><author>weixin_49875821</author><pubDate>Mon, 11 Oct 2021 09:07:32 +0800</pubDate><description><![CDATA[跨域问题简单的说就是前台请求一个后台链接，发送请求的前台与后台的地址不在同一个域下，就会产生跨域问题。这里所指的域包括协议、IP地址、端口等。

1.跨域访问安全问题

后端代码：


package cn.qs.controller;

import java.util.LinkedHashMap;
import java.util.Map;

import org.apache.commons.collections.MapUtils;
import org.springframework.web.bi]]></description><category></category></item><item><title><![CDATA[vue3写法]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/120034967</link><guid>https://blog.csdn.net/weixin_49875821/article/details/120034967</guid><author>weixin_49875821</author><pubDate>Wed, 01 Sep 2021 10:56:19 +0800</pubDate><description><![CDATA[vue3


&lt;el-button type="danger" title="删除" @click="onDelete(scope.row.id)"&gt;&lt;/el-button&gt;

ts


setup () {
    const { onDelete } = deleteButton(mountedSelect) // 点击删除按钮函数封装文件

    // 导出数据 return
    return {
      onDelete
    }
  }

引入的封装 ts ..]]></description><category></category></item><item><title><![CDATA[‘.native‘ modifier on ‘v-on‘ directive is deprecated]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/120010362</link><guid>https://blog.csdn.net/weixin_49875821/article/details/120010362</guid><author>weixin_49875821</author><pubDate>Tue, 31 Aug 2021 09:37:00 +0800</pubDate><description><![CDATA[翻译过来就是 --- 不推荐使用“v-on”指令上的“.native”修饰符

因为 vue3 版本不支持这个 native 文档中也没有 (被弃用了)


&lt;!-- ✓ 正确写法 --&gt;
  &lt;el-button @click="search"&gt;搜索&lt;/el-button&gt;
  &lt;el-input
    placeholder="请输入搜索内容"
    v-model="inputSearch"
    @keyup.enter="search"...]]></description><category></category></item><item><title><![CDATA[webpack.config.js(详解)]]></title><link>https://blog.csdn.net/weixin_49875821/article/details/119416338</link><guid>https://blog.csdn.net/weixin_49875821/article/details/119416338</guid><author>weixin_49875821</author><pubDate>Thu, 05 Aug 2021 13:53:12 +0800</pubDate><description><![CDATA[module.exports = {
  publicPath: './',//设置的就是域名根目录到项目文件根目录间的url。
  outputDir: 'motorway',//打包后生成的文件目录名
  assetsDir: 'static',//静态资源目录
  lintOnSave: process.env.NODE_ENV === 'development',//设置是否在开发环境下每次保存代码时都启用 eslint验证。
  productionSourceMap: false,//设置是否.]]></description><category></category></item></channel></rss>