
微信小程序
xiejunna
软件开发
展开
-
微信小程序自定义组件示例
声明:此文借鉴两位前辈的博文 https://www.jianshu.com/p/8a2a730d9e60 http://www.jb51.net/article/117295.htm 感谢这两位前辈的贡献!!! 实现功能:把密码输入封装成一个自定义组件,可以多处调用此组件 component部分:pwdalert.wxml<view wx:if="{{pwd_flag}}" class=原创 2018-03-23 19:31:57 · 2059 阅读 · 0 评论 -
linux 虚拟机中安装telnet命令
linux虚拟机中按顺序执行命令行(记得切换至root用户下)1.这个命令是telnet的依赖包yum install xinetd2. yum install telnet3.yum install telnet-server 4.开启telnet命令,通过修改配置文件(默认是关闭的)vim /etc/xinetd.d/telnet 修改 disable = yes 为原创 2018-03-23 19:47:52 · 4242 阅读 · 1 评论 -
linux curl 微信access_token 时"appid missing hint"
curl https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=你的appid&secret=你的appsecret[1] 7282[2] 7283{"errcode":41002,"errmsg":"appid missing hint: [e36kwa07053064]"}...原创 2018-03-28 18:17:30 · 10666 阅读 · 2 评论 -
微信小程序Unexpected end of JSON input;SyntaxError: Unexpected end of JSON input
在开发微信小程序时,遇到如下报错内容。在请求服务器接口时,接口返回aes加密串,在解密aes的时候,总是报下面的错,接收的aes密文用工具解析正常,可以解出来,就是在小程序中就报如下错误: 小程序报错:thirdScriptErrorUnexpected end of JSON input;at pages/index/index onLoad function;at api requ...原创 2018-04-12 10:52:34 · 19683 阅读 · 1 评论 -
小程序扫描普通链接二维码跳转小程序指定界面
微信官方文档https://developers.weixin.qq.com/miniprogram/introduction/qrcode.html 看了官方文档之后,还是存在很多困惑,微信小程序是托管到微信服务器上的,要想扫描普通链接跳转指定界面,首先要知道微信把小程序放的服务器的访问路径,这些最初想法,可是看微信官方文档,感觉不是我想的这样的文档上:“二维码规则的域名须通过ICP备案的验证。原创 2018-04-23 17:08:20 · 91005 阅读 · 21 评论 -
this.selectComponent is not a function
微信小程序开发时报错,具体错误内容如下: VM26227:1 thirdScriptError this.selectComponent is not a function;at pages/test/test page lifeCycleMethod onReady function TypeError: this.selectComponent is not a funct...原创 2018-09-12 14:19:47 · 14169 阅读 · 2 评论 -
jsEnginScriptError
VM26723:1 jsEnginScriptError Component is not found in path “pages/components/pwddialog/pwddialog” (using by “pages/test/test”) Error: Component is not found in path “pages/components/pwdd...原创 2018-09-12 14:30:27 · 5895 阅读 · 2 评论 -
Now you can provide attr "wx:key" for a "wx:for" to improve performance
小程序开发中遍历列表时,出现警告Now you can provide attr "wx:key" for a "wx:for" to improve performance 这是因为没有添加属性,使用 wx:key 来指定列表中项目的唯一的标识符。wx:key 的值以两种形式提供 字符串,代表在 for 循环的 array 中 item 的某个 property,该 prope...原创 2018-09-13 10:52:21 · 2186 阅读 · 0 评论