<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sunflower1123816的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/sunflower1123816</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; sunflower1123816]]></copyright><item><title><![CDATA[vue页面全局添加水印]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/127900179</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/127900179</guid><author>sunflower1123816</author><pubDate>Thu, 17 Nov 2022 11:13:47 +0800</pubDate><description><![CDATA[vue页面全局添加水印]]></description><category></category></item><item><title><![CDATA[public.js(src/common/public.js)自用]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/127070589</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/127070589</guid><author>sunflower1123816</author><pubDate>Tue, 27 Sep 2022 14:18:46 +0800</pubDate><description><![CDATA[public.js  自用]]></description><category></category></item><item><title><![CDATA[vue下载导出excel]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/120765207</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/120765207</guid><author>sunflower1123816</author><pubDate>Thu, 14 Oct 2021 15:27:37 +0800</pubDate><description><![CDATA[let API='/gateway/cloud-dosp-manage/asset/index-config/exportIndexConfigLog'
let link = document.createElement('a');
link.href =API + '?indexConfigId=' + this.itemData.id;
link.click();
link.remove();


]]></description><category></category></item><item><title><![CDATA[时间戳转换方法,字符串转日期格式]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/119643953</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/119643953</guid><author>sunflower1123816</author><pubDate>Thu, 12 Aug 2021 14:38:57 +0800</pubDate><description><![CDATA[//时间戳转换方法    date:时间戳数字
function timestampToTime(timestamp) {
  var date = new Date(timestamp);
  var Y = date.getFullYear() + "-";
  var M =(date.getMonth() + 1 &lt; 10
      ? "0" + (date.getMonth() + 1)
      : date.getMonth() + 1) + "-";
  var D = (dat]]></description><category></category></item><item><title><![CDATA[自用：接口参数添加字段，图片根据状态确定]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/119418520</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/119418520</guid><author>sunflower1123816</author><pubDate>Thu, 05 Aug 2021 15:08:27 +0800</pubDate><description><![CDATA[const headers = { headers: {'Content-Type':'multipart/form-data'}}
       var formData = new FormData();
       formData.append("handleUserId",this.form.handleUserId);
       


]]></description><category></category></item><item><title><![CDATA[vue中获取当前时间]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/117216485</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/117216485</guid><author>sunflower1123816</author><pubDate>Mon, 24 May 2021 09:36:57 +0800</pubDate><description><![CDATA[&lt;template&gt;
    &lt;div&gt;
        &lt;p&gt;当前时间是：{{currentTime}}&lt;/p&gt;
        &lt;p----------------------&lt;/p&gt;
        &lt;p&gt;当前时间是：{{time | formatTime('yyyy-MM-dd')}}&lt;/p&gt;
    &lt;/div&gt;
&lt;/template&gt;
&lt;script&gt;
    expor]]></description><category></category></item><item><title><![CDATA[VS Code常用快捷键]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/112917683</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/112917683</guid><author>sunflower1123816</author><pubDate>Thu, 21 Jan 2021 10:39:13 +0800</pubDate><description><![CDATA[在当前行下方插入一行:   Ctrl+Enter
在当前行上方插入一行:   Ctrl+Shift+Enter
代码行向左或向右缩进:   Ctrl+[ 、 Ctrl+]
代码格式化:   Shift+Alt+F
向上或向下移动一行:   Alt+Up 或 Alt+Down
向上或向下复制一行:   Shift+Alt+Up 或 Shift+Alt+Down
移动到定义处:   F12
选择从光标到行尾的内容:   Shift+End
选择从光标到行首的内容： Shift+Home
删除光标右侧的所有内容(]]></description><category></category></item><item><title><![CDATA[vue中使用echarts拓扑图(力导向图)]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/112271012</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/112271012</guid><author>sunflower1123816</author><pubDate>Wed, 06 Jan 2021 14:19:47 +0800</pubDate><description><![CDATA[chartGraph.setOption({
              tooltip: {
                formatter: function (params) {
                  return params.data.type
                }
              },
              animationDurationUpdate: 1500,
              animationEasingUpdate: '.]]></description><category></category></item><item><title><![CDATA[vue中封装websocket]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/112260713</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/112260713</guid><author>sunflower1123816</author><pubDate>Wed, 06 Jan 2021 11:26:21 +0800</pubDate><description><![CDATA[每个组件页面都用到websocket，可以讲websocket封装起来，用到的页面一调用就好。

1.在untils文件夹下新建socket_service.js

export default class SocketService {
  static instance = null
  static get Instance () {
    if (!this.instance) {
      this.instance = new SocketService()
    }
    return]]></description><category></category></item><item><title><![CDATA[数组去重最简单的方法]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/111315305</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/111315305</guid><author>sunflower1123816</author><pubDate>Thu, 17 Dec 2020 14:53:42 +0800</pubDate><description><![CDATA[数组去重最简单的方法：new Set
var array = new Set(['1','1','0','9'])   
            console.log(array)  //{"1", "0", "9"}
            console.log([...array])  //["1", "0", "9"]


]]></description><category></category></item><item><title><![CDATA[ES6深拷贝，浅拷贝]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/111282222</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/111282222</guid><author>sunflower1123816</author><pubDate>Wed, 16 Dec 2020 15:56:40 +0800</pubDate><description><![CDATA[深拷贝：
ES6深拷贝最简单的方法：
JSON.parse(JSON.stringify(obj))

因为字符串转成对象之后就是一个新的对象了，obj相当于一个新的对象了。
浅拷贝：

结构赋值
Object.assign()
for in
Object.keys()

&lt;template&gt;
   &lt;div&gt;
   &lt;/div&gt;
&lt;/template&gt;
&lt;script&gt;
    export default {
        data(){
 ]]></description><category></category></item><item><title><![CDATA[${}模板字符串]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/110874410</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/110874410</guid><author>sunflower1123816</author><pubDate>Tue, 08 Dec 2020 15:36:20 +0800</pubDate><description><![CDATA[模板字符串是ES6中非常重要的一个新特性。比如在处理嵌入表达式、多行字符串、字符串中插入变量、字符串格式化等方面的应用。模板字符串使用反钩号（backticks,`），而不是单引号或双引号。
const name = '小缘'
const age = 14
console.info(`大家好，我叫${name}，今年${age}岁了`)
// 等价于
console.info('大家好，我叫' + name + '，今年' + age + '岁了')



...]]></description><category></category></item><item><title><![CDATA[InputNumber 计数器默认值改为空]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/110045443</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/110045443</guid><author>sunflower1123816</author><pubDate>Tue, 24 Nov 2020 10:33:05 +0800</pubDate><description><![CDATA[官网InputNumber 计数器默认值为为0，

官网描述：

要想显示为空，则设置 v-model 的值为 undefined即可。

]]></description><category></category></item><item><title><![CDATA[vue中使用rules对表单字段进行校验]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/109818605</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/109818605</guid><author>sunflower1123816</author><pubDate>Thu, 19 Nov 2020 17:24:09 +0800</pubDate><description><![CDATA[vue中使用rules对表单字段进行校验，以下是封装好的一些方法：
/*是否合法IP地址*/
export function validateIP(rule, value,callback) {
  if(value==''||value==undefined||value==null){
    callback();
  }else {
    const reg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])]]></description><category></category></item><item><title><![CDATA[西安中软国际的三年]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/109639846</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/109639846</guid><author>sunflower1123816</author><pubDate>Thu, 12 Nov 2020 11:13:23 +0800</pubDate><description><![CDATA[不知不觉，中软国际已待了3年。
  入职中软之前，已收到一家公司offer，薪资也比中软高一些，但当时未婚，考虑到结婚，休产假，哺乳假之类的，最终还是选择了中软。
  先说说中软的优点吧！
   婚假，产假，哺乳假薪资都是准时一分不少的发着，当时婚假休了13天，产假好像是168天，哺乳假每天1小时。
   周末基本都是双休，除过项目上线支撑。
   遇到好的项目组，同事关系融洽，有大佬协助定位问题，也有华为的人帮助解决问题。
 ...]]></description><category></category></item><item><title><![CDATA[vue项目打包部署后，有一个页面数据不显示]]></title><link>https://blog.youkuaiyun.com/sunflower1123816/article/details/109636599</link><guid>https://blog.youkuaiyun.com/sunflower1123816/article/details/109636599</guid><author>sunflower1123816</author><pubDate>Thu, 12 Nov 2020 09:28:21 +0800</pubDate><description><![CDATA[问题：类似大屏的项目，里面6个页面，一个页面数据显示不出来，别的页面都好着。
解决方案：有问题的页面后台数据返回的数组里的第一项是空的，页面显示的时候，遇到没值，代码就不会往下走，后面的数据不会显示出来。加判断，if数组为空，页面的值显示为空（‘’）。这样就不影响后面数据显示

...]]></description><category></category></item></channel></rss>