<?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>Tue, 05 May 2026 08:33:20 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[微信小程序列表item绑定事件，参数的传递和获取]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2935]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 17 Jul 2023 14:33:11 +0800</pubDate> 
      <description><![CDATA[<div class="code">&lt;view class=&quot;bangDingItem&quot; wx:for=&quot;{{oldManHistoryList}}&quot; wx:key=&quot;id&quot;&gt;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;      &lt;view class=&quot;bangDingTitle&quot; bindtap=&quot;oldManListTap&quot; data-newsid=&quot;199&quot; data-source=&quot;{{item}}&quot;&gt;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;          &lt;wux-row&gt;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;              &lt;wux-col span=&quot;6&quot; push=&quot;0&quot;&gt;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                  &lt;view class=&quot;icon &quot;&gt;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      &lt;wux-icon type=&quot;ios-paper&quot; size=&quot;40rpx&quot; /&gt;</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2935]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[解决：&#39;vue-cli-service&#39; 不是内部或外部命令，也不是可运行的程序 或批处理文件]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2932]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 15 Jun 2023 10:51:54 +0800</pubDate> 
      <description><![CDATA[win10的系统，使用下面的命令安装vue后<br /><div class="code">npm install -g @vue/cli</div>出现找不到 vue-cli-service 命令的情况<br /><br />E:\YLeMusic&gt; vue-cli-service electron:serve<br /><br />&#39;vue-cli-service&#39; 不是内部或外部命令，也不是可运行的程序<br />或批处理文件。<br />清理 node_modules 重新安装，试了不管用，最后直接使用下面的命令安装vue-cli-service解决了。<br /><div class="code">npm install -g @vue/cli-service</div><br /><span style="color:Red">重新启动系统后问题解决</span><br /><br /><br />链接：<a href="https://www.jianshu.com/p/4bb4ce82fb20" title="https://www.jianshu.com/p/4bb4ce82fb20" target="_blank">https://www.jianshu.com/p/4bb4ce82fb20</a>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2932]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[微信小程序图片宽高自适应]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2899]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 12 Dec 2022 16:35:24 +0800</pubDate> 
      <description><![CDATA[<b>第一、图片高度自适应</b><br />微信小程序&lt;image&gt;有默认的宽高width:320rpx;height:240rpx;只设置width：100%是无效的，即使写了height：100%，依然无效。<br />只要在&lt;image&gt;标签添加mode=&quot;widthFix&quot;属性，就可以做到高度自适应，<div class="code">&lt;image src=&quot;{{carouselpic}}&quot; mode=&quot;widthFix&quot; style=&quot;width:100%&quot; /&gt;</div><br /><br /><b>第二、宽度100%：发现在模拟器上显示一切正常，但是到了手机上右侧会空出一点空白边。</b><br /><br />解决：<br /><div class="code">&lt;image src=&quot;{{carouselpic}}&quot; mode=&quot;widthFix&quot; style=&quot;width:{{screenWidth}}px&quot; /&gt;</div><br />上面的<span style="color:Red">screenWidth</span>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2899]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[微信小程序布局中的单位及使用：px、rem、rpx、vw、vh、n%]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2898]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 12 Dec 2022 15:59:44 +0800</pubDate> 
      <description><![CDATA[px：就是 Pixel 的缩写，就是指像素，图片采样的基本单位。<br /><br /><span style="color:Red">rem：</span>把页面按比例分割达到自适应的效果。规定屏幕宽度为 20 rem，根据屏幕大小动态的设置 fontsize，来达到不同的分辨率下有一样的效果。<br /><br /><span style="color:Red">rpx：</span>这个单位是微信小程序中特有的尺寸单位，也是把页面按比例分割达到自适应的效果。规定屏幕宽为750rpx，就是把屏幕宽度分成750部分，根据屏幕宽度进行自适应。可与 rem 换算：1 rem = (750/20) rpx =37.5 rpx<br /><br />如在 iPhone6 上，屏幕宽度逻辑像素为375px，共有750个物理像素，则750rpx = 375px = 750物理像素，1rpx = 0.5px = 1物理像素。所以开发微信小程序时用 iPhone6 作为视觉稿的标准,单位换算相对简单 。<br /><br /><span style="color:Red">vw：</span>视窗宽度，1vw等于视窗宽度的1%。<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2898]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[微信小程序console.log()的使用问题，谨慎使用加号]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2897]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sat, 10 Dec 2022 15:17:41 +0800</pubDate> 
      <description><![CDATA[console.log方法用于在控制台输出信息。它可以接受一个或多个参数，将它们连接起来输出。<br /><br /><b>一般使用方法如下，多个参数需要用逗号分开</b><div class="code">console.log(&#39;Hello World&#39;)<br />// Hello World<br />console.log(&#39;a&#39;, &#39;b&#39;, &#39;c&#39;)<br />// a b c</div><br /><span style="color:Red"><b>错误使用如下：</b></span><div class="code">console.log(&#39;res=&#39;+res);</div>当res不是字符串的时候，上面的写法就报错了，加号需要改为逗号<div class="code">console.log(&#39;res=&#39;,res);</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2897]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[wx.uploadFile返回json字符串不是json对象]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2896]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sat, 10 Dec 2022 15:16:09 +0800</pubDate> 
      <description><![CDATA[wx.uploadFile返回json字符串不是json对象，如果不转换，直接用点运算符是获取不到后台返回的值的<br /><div class="code">let res = JSON.parse(res);</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2896]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[小程序使用回调函数来解决异步执行问题]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2894]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Fri, 09 Dec 2022 09:34:19 +0800</pubDate> 
      <description><![CDATA[<span style="color:Red"><b>p.s. 异步执行问题：第一个函数没有执行完就执行第二个函数的问题</b></span><br /><br /><span style="color:Blue">实际使用中，回调函数用可以匿名，也可以命名然后单独写在一个函数中。还可以将page页的this传递给主函数，然后主函数能通过这个page的this调用page页的参数和函数做一些复杂点的操作。当然page相关的最好还是放到回调函数里面进行更清晰。</span><br /><br /><br />在JavaScript中，回调函数具体的定义为：函数A作为参数(函数引用)传递到另一个函数B中，并且这个函数B执行函数A。我们就说函数A叫做回调函数。如果没有名称(函数表达式)，就叫做匿名回调函数。<br /><br />当需要使用回调函数时，需要预先定义一个函数体。而回调函数通常只是提供给其它模块进行调用，为了简化编码，javascript等脚本语言中提供了对匿名函数的支持。<br /><br />回调函数的使用场合：资]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2894]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[微信小程序：使用Promise简化回调]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2893]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Thu, 08 Dec 2022 18:43:34 +0800</pubDate> 
      <description><![CDATA[<span style="color:Red">p.s. 定义回调函数，可以解决异步执行问题：第一个函数没有执行完就执行第二个函数的问题。目前加入Promise可以简化存在多级回调的问题！<br />如果程序逻辑上没有3级及其以上的回调，应该是不需要用到Promise的。</span><br /><br /><b>了解什么是 Promise 对象</b><br /><br />在项目中，会出现各种异步操作，如果一个异步操作的回调里还有异步操作，就会出现回调金字塔。<br /><br /><b>比如下面这种</b><br /><div class="code">// 模拟获取code，然后将code传给后台，成功后获取userinfo，再将userinfo传给后台<br />// 登录<br />wx.login({<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; success: res =&gt; {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;let code = res.code<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// 请求<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;imitationPost({<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  url: &#39;/test/loginWithCode&#39;,</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2893]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Towxml 是一个可将HTML、Markdown转为微信小程序WXML(WeiXin Markup Language)的渲染库。]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2892]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Mon, 05 Dec 2022 09:14:31 +0800</pubDate> 
      <description><![CDATA[Towxml 是一个可将HTML、Markdown转为微信小程序WXML(WeiXin Markup Language)的渲染库。用于解决在微信小程序中Markdown、HTML不能直接渲染的问题。<br />地址：<a href="https://github.com/sbfkcel/towxml" title="https://github.com/sbfkcel/towxml" target="_blank">https://github.com/sbfkcel/towxml</a><br /><br /><div style="width: 100%;overflow-x : auto;"><a href="http://blog.xg98.com/attachments/202212/05_091554_s.png" target="_blank"><img src="http://blog.xg98.com/attachments/202212/05_091554_s.png" alt="http://blog.xg98.com/attachments/202212/05_091554_s.png" /></a></div><br /><br />Towxml 3.0 完整支持以下功能。当然在构建时可仅保留需要功能以减少体积大小和代码依赖。<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; 支持echarts图表（3.0+）<br /><br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; 支持LaTex数学公式（3.0+）<br /><br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; 支持yuml流程图（3.0+）<br /><br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; 支持按需构建（3.0+）<br /><br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; 支持代码语法高亮、代码块行号显示<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; 支持emoji表情<br /><br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; 支持上标、下标、下划线、删除线、表格、视频、图片（几乎所有html元素）……<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2892]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[小程序editor编辑器封装成组件和使用方法]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2891]]></link> 
      <category><![CDATA[微信小程序]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Sun, 04 Dec 2022 10:21:44 +0800</pubDate> 
      <description><![CDATA[官方editor（富文本编辑器，可以对图片、文字进行编辑）：<a href="https://developers.weixin.qq.com/miniprogram/dev/component/editor.html" title="https://developers.weixin.qq.com/miniprogram/dev/component/editor.html" target="_blank">https://developers.weixin.qq.com/miniprogram/dev/component/editor.html</a><br /><br /><br /><b>第三方封装的一个editor组件 </b><br />下载地址：<a href="https://github.com/jxh1997/Editor" title="https://github.com/jxh1997/Editor" target="_blank">https://github.com/jxh1997/Editor</a><br />作者博客：<a href="https://blog.csdn.net/XH_jing/article/details/115509316" title="https://blog.csdn.net/XH_jing/article/details/115509316" target="_blank">https://blog.csdn.net/XH_jing/article/details/115509316</a><br /><br /><b>如果使用出错可以改写组件中的edirot ready函数<br /></b><div class="code">&nbsp;&nbsp; &nbsp; onEditorReady() {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; let _this=this;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console.log(&#39;编辑器组件初始化完成时触发&#39;);<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // 返回一个 SelectorQuery 对象实例。在自定义组件或包含自定义组件的页面</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2891]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
