<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[拍拍尘土]]></title> 
    <link>http://blog.xg98.com/</link> 
    <description><![CDATA[五月枇杷黄，太湖银鱼肥]]></description> 
    <language>zh-cn</language> 
    <copyright><![CDATA[Copyright 2026, 拍拍尘土]]></copyright> 
    <webMaster><![CDATA[cxosoft@gmail.com (Admin)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Mon, 04 May 2026 19:34:52 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[js 中{},[] 方括号数组,大括号对象使用详解JavaScript，涉及到函数concat()]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2982]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 04 Sep 2024 14:41:44 +0800</pubDate> 
      <description><![CDATA[<span style="color:Red">p.s. 对象的调用可以用点.或者类似数组的方括号[]调用，但是数组则必须用方括号[]调用。<br />concat()函数必须用在数组对象，例如 array1.concat() ，而对象无法用这个函数</span><br /><br /><b>一、{ } 大括号，表示一个对象</b><div class="code">{key1:value1 , key2:value2}</div><br /><br />value可为变量或者函数 ,调用对象属性或者方法通常用点号<div class="code">let obj = {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; birth: 1990,<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; fun1: function () {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;let fn = () =&gt; new Date().getFullYear() - this.birth; // this指向obj对象<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return fn();<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; },<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; fun2: (x) =&gt; x * x</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2982]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[vuex的Store和localStorage、全局变量的区别]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2940]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 05 Oct 2023 14:42:23 +0800</pubDate> 
      <description><![CDATA[<b><span style="color:Red">vuex的Store和localStorage的区别是什么呢？</span></b><br /><br />1.最重要的区别：vuex存储在内存，localStorage则以文件的方式存储在本地<br /><br />2.应用场景：vuex用于组件之间的传值，localStorage则主要用于不同页面之间的传值。<br /><br />3.永久性：当刷新页面时vuex存储的值会丢失，localStorage不会。<br /><br /> &nbsp; <br /><br /><b><span style="color:red">vuex的Store和全局变量的区别是什么呢？</span></b><br /><br />1.由于使用Vuex需要将store实例挂载到Vue实例中，因此Vue实例可以对Vuex的state数据加监听，这跟Vue实例data的数据双向绑定是类似的。<br /><br />而全局变量由于没有被“数据劫持”，因此即使全局变量的值发生改变，也无法在Vue实例中监听到他的变化。<br /><br />2.Vuex中的状态值，不能通过赋值的方式(state.xxx ]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2940]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Vue.Draggable Vue 动态拖放组件 ，拖拽diy页面的实现]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2933]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sat, 17 Jun 2023 15:34:42 +0800</pubDate> 
      <description><![CDATA[Vue.Draggable参考应用代码：  <a href="https://gitee.com/china-bin/vdesjs" title="https://gitee.com/china-bin/vdesjs" target="_blank">https://gitee.com/china-bin/vdesjs</a><br />vue.draggable中文文档 (基于sortable.js)：<a href="https://www.itxst.com/vue-draggable/tutorial.html" title="https://www.itxst.com/vue-draggable/tutorial.html" target="_blank">https://www.itxst.com/vue-draggable/tutorial.html</a>    <br />sortable.js文档：<a href="https://www.itxst.com/sortablejs/rmmr3i73.html" title="https://www.itxst.com/sortablejs/rmmr3i73.html" target="_blank">https://www.itxst.com/sortablejs/rmmr3i73.html</a><br /><br /><br /><b>软件简介</b><br /><br />Vue.Draggable 是基于 Sortable.js 的 Vue 拖放组件。它允许拖放和视图模型数组同步，基于并提供 Sortable.js 的所有功能。<div style="width: 100%;overflow-x : auto;"><a href="http://blog.xg98.com/attachments/202306/17_153501_082132_zfpe_4105562.gif" target="_blank"><img src="http://blog.xg98.com/attachments/202306/17_153501_082132_zfpe_4105562.gif" alt="http://blog.xg98.com/attachments/202306/17_153501_082132_zfpe_4105562.gif" /></a></div><br /><br /><br /><br /><b>特性</b><br /> &nbsp; &nbsp; &nbsp; &nbsp; 完全支持 Sortable.js 功能：<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2933]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[npm命令参数详解  -S -D -g]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2865]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 12 May 2022 14:48:51 +0800</pubDate> 
      <description><![CDATA[在使用npm下载安装模块时，一般使用以下几个命令：<div class="code">npm install moduleName # 安装模块到项目目录下<br />&nbsp;&nbsp; <br />npm install -g moduleName # -g 的意思是将模块安装到全局，具体安装到磁盘哪个位置，要看 npm config prefix 的位置。<br />&nbsp;&nbsp; <br />npm install -save moduleName # -save 的意思是将模块安装到项目目录下，并在package文件的dependencies节点写入依赖。<br />&nbsp;&nbsp; <br />npm install -save-dev moduleName # -save-dev 的意思是将模块安装到项目目录下，并在package文件的devDependencies节点写入依赖。</div><br /><br /><br /><span style="color:Red"><b>devDependencies和dependencies 节点（开发环境和生产环境）</b></span><br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2865]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[记录下开发中遇到的低级错误，如template和background-color，css样式行尾加了分号]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2864]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 11 May 2022 21:38:57 +0800</pubDate> 
      <description><![CDATA[<span style="color:Red">p.s. 这些拼写造成的问题，很难检查出来，调试过程浪费时间，手写代码容易手误，还是要多利用工具的自动提示功能。</span><br /><br /><b>1、组件不显示，检测到怀疑人生</b><br />最后发现是模板单词 template 误写成了 <span style="color:Red">templete<br /></span><br /><b><br />2、一个vant组件背景色样式background-color始终无法自定义</b><br />检查了几遍官方文档，查csdn和cnblog，还去查了百毒就是没有头绪<br />无意中再加个 background 居然就成功改色了，想想不能够，仔细看了下原来是单词错误<br />background-color  写成了<span style="color:Red"> backgroud-color </span> <br />难怪浏览器调试里出现backgroud-color是未知属性（unknown property value），怎么也不会想到这么熟悉的单词能写错。<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2864]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Vue报错：Mixed spaces and tabs no-mixed-spaces-and-tabs 解决办法]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2863]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 11 May 2022 17:20:12 +0800</pubDate> 
      <description><![CDATA[package.json的eslintrcr配置项rules里，手动添加’no-mixed-spaces-and-tabs’，然后定义为0，关闭规则<div class="code">“no-mixed-spaces-and-tabs”:0</div><br /><div style="width: 100%;overflow-x : auto;"><a href="http://blog.xg98.com/attachments/202205/11_172046_c6699555819d47cf9a5777137f5a5745.png" target="_blank"><img src="http://blog.xg98.com/attachments/202205/11_172046_c6699555819d47cf9a5777137f5a5745.png" alt="http://blog.xg98.com/attachments/202205/11_172046_c6699555819d47cf9a5777137f5a5745.png" /></a></div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2863]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[vue3下面使用axios，涉及到的跨域问题2种解决方案]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2862]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 11 May 2022 10:48:39 +0800</pubDate> 
      <description><![CDATA[开发环境中因为使用node+vue调试，一般都会有跨域问题，前端放在node下 <a href="http://localhost:8080" title="http://localhost:8080" target="_blank">http://localhost:8080</a> ，而接口放在 <a href="http://localhost:2020/myapi。" title="http://localhost:2020/myapi。" target="_blank">http://localhost:2020/myapi。</a><br />浏览器不允许跨域访问，报Access-Control-Allow-Origin限制。<br /><br /><b>解决方法一</b><br />利用vue提供的反向代理，配置vue.config.js<div class="code">const { defineConfig } = require(&#39;@vue/cli-service&#39;)<br />module.exports = defineConfig({<br />&nbsp;&nbsp; &nbsp; transpileDependencies: true,<br />&nbsp;&nbsp; &nbsp; devServer : {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proxy : {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#39;/proxyapi&#39; : { //这里/proxyapi做识别用，url重写时会替换为空。同样axios的base_rul也需要配置为/proxyapi<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;target : &#39;http&#58;//localhost:2020&#39;,</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2862]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Vue3使用axios的教程]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2861]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 10 May 2022 15:58:46 +0800</pubDate> 
      <description><![CDATA[<p>axios<span style="color: rgb(77, 77, 77); font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif; font-size: 16px; font-variant-ligatures: no-common-ligatures; background-color: rgb(255, 255, 255);">中文网站：</span>axios-http.com/zh/</p><h2 style="white-space: normal; box-sizing: border-box; outline: 0px; margin: 8px 0px 16px; padding: 0px; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 22px; color: rgb(79, 79, 79); line-height: 30px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; background-color: rgb(255, 255, 255); ]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2861]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[vue3创建的项目中使用vant UI组件库toast轻提示]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2860]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Tue, 10 May 2022 15:02:57 +0800</pubDate> 
      <description><![CDATA[PS：在使用过程中发现个小细节，在main.js中use的时候写的是Toast（大写的），在组件中this.$Toast ( ) 是 获 取 不 到 的 ，得小写的this.$toast()<br /><br /><br />从vant中引入Toast，再createApp().use(Toast)，这是在项目中main.js内的代码，是全局引入的方式<br /><div style="width: 100%;overflow-x : auto;"><a href="http://blog.xg98.com/attachments/202205/10_150401_af9de62d7efe42a1a314105d49b96532.png" target="_blank"><img src="http://blog.xg98.com/attachments/202205/10_150401_af9de62d7efe42a1a314105d49b96532.png" alt="http://blog.xg98.com/attachments/202205/10_150401_af9de62d7efe42a1a314105d49b96532.png" /></a></div><br /><br />文档中是直接使用  <div class="code">Toast(&quot;弹出对话框&quot;);   //组件中提示错误</div>而在实际项目中，全局引入之后，在组件中直接使用Toast()是会报undefined的，找度娘帮忙之后发现，vue3里面是需要this.来获取的，即<div class="code">this.$toast(“弹出对话框”);     //注意小写</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2860]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Vue3 (@Vue/cli) 项目修改项目名的方法，目的就是重建 node_modules]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2859]]></link> 
      <category><![CDATA[Vue.js]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 09 May 2022 16:32:30 +0800</pubDate> 
      <description><![CDATA[<b><span style="color:Red">一、直接修改目录名</span></b><br />1.删除 node_modules 文件夹<br />2.修改项目名称(项目文件夹名称)，并在package.json中修改对应的name<br />3.重新安装依赖 npm install<br />4.启动项目 npm run serve<br /><br /><br /><b><span style="color:Red">二、新建一个项目，然后复制老的项目文件到新文件夹</span></b><br />1、vue create 新文件夹<br />2、cd 新文件夹 ，然后安装依赖的组件，如 vant、babel、less<br />3、把老的项目文件夹下的所有文件（除了node_modules），都复制到新项目文件夹下，并在package.json中修改对应的name<br />4、启动项目 npm run serve]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2859]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
