<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[armanted的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/armanted</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; armanted]]></copyright><item><title><![CDATA[在Vue3和Vue2中配置 base 和 publicPath (应用要被部署在一个子路径上)]]></title><link>https://blog.youkuaiyun.com/armanted/article/details/145027631</link><guid>https://blog.youkuaiyun.com/armanted/article/details/145027631</guid><author>armanted</author><pubDate>Thu, 09 Jan 2025 11:03:30 +0800</pubDate><description><![CDATA[如果是在hash路由模式下部署。在Vue2 中设置路由模块。在Vue3 中设置路由模块。去除路径中的' #' 号。在Vue2中设置路由模块。在Vue3中设置路由模块。]]></description><category></category></item><item><title><![CDATA[实现获取后端返回数据动态渲染到element框架的select组件的option中]]></title><link>https://blog.youkuaiyun.com/armanted/article/details/143569155</link><guid>https://blog.youkuaiyun.com/armanted/article/details/143569155</guid><author>armanted</author><pubDate>Wed, 06 Nov 2024 14:13:42 +0800</pubDate><description><![CDATA[1、为了多处使用使用自定义指令。]]></description><category></category></item><item><title><![CDATA[js 实现传入字符串将字符串保存到剪切板中]]></title><link>https://blog.youkuaiyun.com/armanted/article/details/143516259</link><guid>https://blog.youkuaiyun.com/armanted/article/details/143516259</guid><author>armanted</author><pubDate>Tue, 05 Nov 2024 17:31:42 +0800</pubDate><description><![CDATA[【代码】js 实现传入字符串将字符串保存到剪切板中。]]></description><category></category></item><item><title><![CDATA[关于项目中批量将px单位转换为rem单位]]></title><link>https://blog.youkuaiyun.com/armanted/article/details/143247943</link><guid>https://blog.youkuaiyun.com/armanted/article/details/143247943</guid><author>armanted</author><pubDate>Sat, 26 Oct 2024 08:42:31 +0800</pubDate><description><![CDATA[github地址：官方文档地址：style=“font-size:37.5px”px to remAlt+Z。]]></description><category></category></item><item><title><![CDATA[有关table组件列合并的方法]]></title><link>https://blog.youkuaiyun.com/armanted/article/details/139040478</link><guid>https://blog.youkuaiyun.com/armanted/article/details/139040478</guid><author>armanted</author><pubDate>Sun, 19 May 2024 11:54:04 +0800</pubDate><description><![CDATA[【代码】有关table组件列合并的方法。]]></description><category></category></item><item><title><![CDATA[有关循环遍历空数据]]></title><link>https://blog.youkuaiyun.com/armanted/article/details/136328231</link><guid>https://blog.youkuaiyun.com/armanted/article/details/136328231</guid><author>armanted</author><pubDate>Tue, 27 Feb 2024 17:51:43 +0800</pubDate><description><![CDATA[forEach()方法、map()方法、filter()方法都会跳过数组中为“空”时的元素，遍历时不会运行相关逻辑代码，map()方法会在返回数组中返回空白占位，filter()方法返回结果会移除“空”元素。当数组元素包含“null”或“undefined”时，如：[1，2，null，3]、[1，2，undefined，3]forEach()方法、map()方法、filter()方法都正常循环，但filter()方法返回结果会移除相应元素。当数组元素包含“空”时，如：[1，2，，3]]]></description><category></category></item><item><title><![CDATA[ES6 map( )和forEach( )方法的区别]]></title><link>https://blog.youkuaiyun.com/armanted/article/details/132904733</link><guid>https://blog.youkuaiyun.com/armanted/article/details/132904733</guid><author>armanted</author><pubDate>Fri, 15 Sep 2023 15:56:28 +0800</pubDate><description><![CDATA[方法本身不支持修改原数组的功能，但通过在回调函数中使用数组索引和赋值操作，可以实现对原数组的改变。例如，如果要将数组中的每个元素都加倍，并更新原数组中的元素，可以在。方法返回一个新的数组，用于对原数组的每个元素进行转换；修改原数组的方式可能会让代码变得难以理解和维护，因为。方法，它能直接返回新的转换后的数组，更加清晰和易读。方法没有返回值，用于对原数组的每个元素执行操作。的回调函数中使用索引来修改原数组的元素。中的元素会被修改为加倍后的值。，可以修改原数组中的元素。]]></description><category></category></item></channel></rss>