<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[asm35548的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/asm35548</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; asm35548]]></copyright><item><title><![CDATA[网址收藏]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797326</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797326</guid><author>asm35548</author><pubDate>Thu, 05 Sep 2019 16:02:00 +0800</pubDate><description><![CDATA[1.算法相关:https://visualgo.net/zh
2.react相关视频:https://yq.aliyun.com/live/1071
3.vue转react视频:https://yq.aliyun.com/live/1026?spm=a2c4e.11154022.liveshowinfo.8.1bb06cbc9CCTBT
4.vue部署服务器404: htt...]]></description><category></category></item><item><title><![CDATA[vue中另一种路由写法]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797324</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797324</guid><author>asm35548</author><pubDate>Thu, 22 Aug 2019 10:14:00 +0800</pubDate><description><![CDATA[一个项目中一级菜单是固定的,二级及其以下的菜单是动态的,直接根据文件夹结构写路由

import Vue from 'vue'
import Router from 'vue-router'
import Lockr from 'lockr'
import { LoadingBar } from 'iview'
import { getToken } from '@/libs...]]></description><category></category></item><item><title><![CDATA[webpack 多环境打包]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797325</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797325</guid><author>asm35548</author><pubDate>Mon, 12 Aug 2019 13:37:00 +0800</pubDate><description><![CDATA[目前来说有两种方案:
方案一:
1.修改build文件夹下build.js文件
　　添加声明变量
　　
2.修改config文件夹下dev.env.js文件
　　这个是开发环境所用版本
　　

3.修改config文件夹下prod.env.js文件
　　添加不同环境的名称,暂时以正式环境和测试环境两个环境为例
　　
4.不同配置参数引用
　　
　　
...]]></description><category></category></item><item><title><![CDATA[vue项目搭建]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797224</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797224</guid><author>asm35548</author><pubDate>Fri, 10 May 2019 13:31:00 +0800</pubDate><description><![CDATA[1.npm install vue
2.vue install vue-cli
3.npm install webpack
4.vue init webpack
5.npm install
6.npm run dev 开始跑项目
修改配置项
1.autoOpenBrowser: true
2.productionSourceMap: false
安装样式文件
npm ...]]></description><category></category></item><item><title><![CDATA[iview在ie9及以上的兼容问题解决方案]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797226</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797226</guid><author>asm35548</author><pubDate>Mon, 11 Mar 2019 18:07:00 +0800</pubDate><description><![CDATA[兼容requestAnimationFrame

let lastTime = 0
let vendors = ['ms', 'moz', 'webkit', 'o']
for (let x = 0; x &lt; vendors.length &amp;&amp; !window.requestAnimationFrame; ++x) {
  window.requestAn...]]></description><category></category></item><item><title><![CDATA[js实现工具函数中groupBy数据分组]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797320</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797320</guid><author>asm35548</author><pubDate>Mon, 04 Mar 2019 13:04:00 +0800</pubDate><description><![CDATA[数据

this.tableData = [
        {id: 1, name: '测试', number: 1, price: 0},
        {id: 2, name: '测试', number: 1, price: 0},
        {id: 3, name: '测试', number: 1, price: 0},
        {id: 4, ...]]></description><category></category></item><item><title><![CDATA[less 循环模拟sass的for循环效果]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797318</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797318</guid><author>asm35548</author><pubDate>Sat, 29 Dec 2018 16:01:00 +0800</pubDate><description><![CDATA[// 输入框部分宽度 从10px到600px 相隔10像素
.generate-widths(600);
.generate-widths(@n, @i: 10) when (@i =&lt; @n) {
  .width@{i} {
    width: 0px + @i;
  }
  .generate-widths(@n, (@i+10));
}


.wi...]]></description><category></category></item><item><title><![CDATA[vue 自动生成菜单]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797315</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797315</guid><author>asm35548</author><pubDate>Tue, 25 Dec 2018 15:38:00 +0800</pubDate><description><![CDATA[import constant from './const'
export function getRouters (files) {
  let filenames = files.keys()
  let list = mapToList(filenames)
  let routerArr = getTree(list)
  return routerArr
}
...]]></description><category></category></item><item><title><![CDATA[JS获取树的父节点及祖先节点]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797313</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797313</guid><author>asm35548</author><pubDate>Mon, 24 Dec 2018 16:23:00 +0800</pubDate><description><![CDATA[主体函数

export function findAllParent (node, tree, parentNodes = [], index = 0) {
  if (!node || node.fid === 0) {
    return
  }
  findParent(node, parentNodes, tree)
  let parentNode = par...]]></description><category></category></item><item><title><![CDATA[textarea换行符转换]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797314</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797314</guid><author>asm35548</author><pubDate>Fri, 21 Dec 2018 18:04:00 +0800</pubDate><description><![CDATA[/**
 * @description textarea换行符转指定字符
 * @param str：要放到textarea的字符串
 * @param code：要转换成换行的字符,默认为','
 */
export const textareaToString = (str, code = ',') =&gt; {
  let lineFeed = '\n'
  l...]]></description><category></category></item><item><title><![CDATA[iview获取全选和半选数据（方法一：基于树型数据）]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797311</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797311</guid><author>asm35548</author><pubDate>Fri, 21 Dec 2018 11:39:00 +0800</pubDate><description><![CDATA[在用iview的时候发现iview的树中获取半选和全选的函数getCheckedAndIndeterminateNodes在我使用的iview版本里面是没有提供的，
于是自己写了一下获取全选和半选节点的数据
这个是最最笨的方法

this.halfCheckData = []
checkData = this.$refs.menuTree.getCheckedNodes()
...]]></description><category></category></item><item><title><![CDATA[axios导出 excel]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797312</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797312</guid><author>asm35548</author><pubDate>Thu, 20 Dec 2018 17:14:00 +0800</pubDate><description><![CDATA[this.axios({
　　methods: 'get',
　　url: url,
　　responseType: 'blob'
}).then(res =&gt; {
　　const blob = new Blob([res])
　　const fileName = '导出信息.xls'
　　if ('download' in document.createElem...]]></description><category></category></item><item><title><![CDATA[vue js 格式化时间]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797309</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797309</guid><author>asm35548</author><pubDate>Thu, 20 Dec 2018 16:08:00 +0800</pubDate><description><![CDATA[常用于iview日期组件时间处理

/**
 * @param {Number} num 数值
 * @returns {String} 处理后的字符串
 * @description 如果传入的数值小于10，即位数只有1位，则在前面补充0
 */
const getHandledValue = num =&gt; {
  return num &lt; 10 ? '0'...]]></description><category></category></item><item><title><![CDATA[vue js格式化数字为金额格式]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797307</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797307</guid><author>asm35548</author><pubDate>Wed, 19 Dec 2018 17:46:00 +0800</pubDate><description><![CDATA[/**
 * @description 格式化金额
 * @param number：要格式化的数字
 * @param decimals：保留几位小数 默认0位
 * @param decPoint：小数点符号 默认.
 * @param thousandsSep：千分位符号 默认为,
 */
export const formatMoney = (number, d...]]></description><category></category></item><item><title><![CDATA[vue render中如何正确配置img的路径]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797306</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797306</guid><author>asm35548</author><pubDate>Thu, 13 Dec 2018 10:18:00 +0800</pubDate><description><![CDATA[第一种：适用于静态路径

attrs: {
  src: require('../common/images/logo.png'),
  title: 'img'
}              

第二种：适用于动态路径

domProps: {
  src: params.row.url,
  title: 'img'
}

第三种：
template
...]]></description><category></category></item><item><title><![CDATA[vue 表格树 固定表头]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797305</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797305</guid><author>asm35548</author><pubDate>Fri, 07 Dec 2018 18:11:00 +0800</pubDate><description><![CDATA[参考网上黄龙的表格树进行完善，并添加固定表头等的功能，目前是在iview的项目中实现，如果想在element中实现的话修改对应的元素标签及相关写法即可。


&lt;!--
   @events  @on-row-click 单击行或者单击操作按钮方法
            @on-selection-change  多选模式下 选中项变化时触发
            ...]]></description><category></category></item><item><title><![CDATA[加载图片出现403的问题]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797304</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797304</guid><author>asm35548</author><pubDate>Thu, 18 Oct 2018 14:57:00 +0800</pubDate><description><![CDATA[有时候服务器会做一些限制，这样我们有时候访问图片的话就会出现403的报错。
但是把图片地址复制出来在地址栏打开的话是可以正常查看图片的。
解决方案是在head中加一句代码：

&lt;meta name="referrer" content="no-referrer"/&gt;

这样我们就可以愉快的查看图片了。

转载于:https://www.cnblogs.com/To...]]></description><category></category></item><item><title><![CDATA[js字符串首字母大写的不同写法]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797303</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797303</guid><author>asm35548</author><pubDate>Sat, 29 Sep 2018 17:34:00 +0800</pubDate><description><![CDATA[写法一：

let name = 'hello'
name.charAt(0).toUpperCase() + name.slice(1)

写法二：

let name = 'hello'
name.slice(0, 1).toUpperCase() + name.slice(1)

写法三：

let name = 'hello'
name.substrin...]]></description><category></category></item><item><title><![CDATA[vue中使用两个window.onresize问题解决]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797302</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797302</guid><author>asm35548</author><pubDate>Fri, 28 Sep 2018 18:21:00 +0800</pubDate><description><![CDATA[在vue开发中，因为引用的父组件和子组件都使用了window.onresize以至于一个window.onresize失效。找了下解决方案，可以采用下面的方式写就可以了。

window.onresize = () =&gt; {this.measure()}
window.addEventListener('resize',() =&gt; this.measure1(), fa...]]></description><category></category></item><item><title><![CDATA[vue备用]]></title><link>https://blog.youkuaiyun.com/asm35548/article/details/101797299</link><guid>https://blog.youkuaiyun.com/asm35548/article/details/101797299</guid><author>asm35548</author><pubDate>Thu, 27 Sep 2018 15:36:00 +0800</pubDate><description><![CDATA[handleCheck (item) {
      if (item.isChecked) {
        this.checkData.push(item.id)
        this.checkData = _.uniqWith(this.checkData, _.isEqual)
      } else {
        this.checkData =...]]></description><category></category></item></channel></rss>