终于找到原因了,如果想要使用html作为参数,html不能包含换行符'\n',否则会生成空间的行
公众号接口新增草稿,传html字符串,为什么上传后ol结构会被修改?html源码显示效果 [图片] html代码 <section id="nice" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif; font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5em; word-spacing: 0em; letter-spacing: 0em; word-break: break-word; overflow-wrap: break-word; text-align: left;"> <h2 style="border-bottom-color: rgb(239, 112, 96); margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; align-items: unset; background-attachment: scroll; background-clip: border-box; background-color: unset; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: solid; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 2px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; display: flex; flex-direction: unset; float: unset; height: auto; justify-content: unset; line-height: 1.1em; overflow-x: unset; overflow-y: unset; position: relative; text-align: left; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;"> <span class="prefix" style="display: none;"> </span> <span class="content" style="font-size: 22px; color: rgb(255, 255, 255); background-color: rgb(239, 112, 96); line-height: 1.5em; letter-spacing: 0em; align-items: unset; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; display: inline-block; font-weight: bold; flex-direction: unset; float: unset; height: auto; justify-content: unset; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 5px; overflow-x: unset; overflow-y: unset; padding-top: 3px; padding-bottom: 1px; padding-left: 10px; padding-right: 10px; position: relative; text-align: left; text-indent: 0em; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;"> 一、引言 </span> <span class="suffix" style="display: none;"> </span> <span style="border-bottom-color: rgb(239, 235, 233); align-items: unset; background-attachment: scroll; background-clip: border-box; background-color: unset; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: solid; border-left-style: none; border-right-style: solid; border-top-width: 1px; border-bottom-width: 36px; border-left-width: 1px; border-right-width: 20px; border-top-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: transparent; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; color: rgb(0, 0, 0); display: inline-block; font-size: 16px; font-weight: bold; flex-direction: unset; float: unset; height: auto; justify-content: unset; letter-spacing: 0px; line-height: 1.1em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; overflow-x: unset; overflow-y: unset; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; position: relative; text-align: left; text-indent: 0em; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;"> </span> </h2> <ol style="list-style-type: decimal; margin-top: 8px; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; color: rgb(0, 0, 0);"> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> <strong style="color: rgb(0, 0, 0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0, 0, 0, 0.4); border-bottom-color: rgba(0, 0, 0, 0.4); border-left-color: rgba(0, 0, 0, 0.4); border-right-color: rgba(0, 0, 0, 0.4); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;"> 背景概述 </strong> <ul style="list-style-type: disc; margin-top: 8px; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; color: rgb(0, 0, 0);"> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> 自考作为我国终身教育体系的重要组成部分(2023年报考人数突破2700万) </section> </li> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> 学历认可度:国家承认学历,学信网可查,与统招学历具有同等法律效力 </section> </li> </ul> </section> </li> </ol> </section> 上传到草稿后显示 [图片] 查看源代码 <section style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif; font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5em; word-spacing: 0em; letter-spacing: 0em; word-break: break-word; overflow-wrap: break-word; text-align: left;"> <h2 style=" border-bottom-color: rgb(239, 112, 96); margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; align-items: unset; background-attachment: scroll; background-clip: border-box; background-color: unset; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: solid; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 2px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; display: flex; flex-direction: unset; float: unset; height: auto; justify-content: unset; line-height: 1.1em; overflow-x: unset; overflow-y: unset; text-align: left; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset; "> <span class="prefix" style="display: none;"> </span> <span class="content" style=" font-size: 22px; color: rgb(255, 255, 255); background-color: rgb(239, 112, 96); line-height: 1.5em; letter-spacing: 0em; align-items: unset; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; display: inline-block; font-weight: bold; flex-direction: unset; float: unset; height: auto; justify-content: unset; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 5px; overflow-x: unset; overflow-y: unset; padding-top: 3px; padding-bottom: 1px; padding-left: 10px; padding-right: 10px; text-align: left; text-indent: 0em; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset; "> <span leaf=""> 一、引言 </span> </span> <span class="suffix" style="display: none;"> </span> <span style=" border-bottom-color: rgb(239, 235, 233); align-items: unset; background-attachment: scroll; background-clip: border-box; background-color: unset; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: solid; border-left-style: none; border-right-style: solid; border-top-width: 1px; border-bottom-width: 36px; border-left-width: 1px; border-right-width: 20px; border-top-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: transparent; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; color: rgb(0, 0, 0); display: inline-block; font-size: 16px; font-weight: bold; flex-direction: unset; float: unset; height: auto; justify-content: unset; letter-spacing: 0px; line-height: 1.1em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; overflow-x: unset; overflow-y: unset; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; text-align: left; text-indent: 0em; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset; "> </span> </h2> <ol style="list-style-type: decimal; margin-top: 8px; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; color: rgb(0, 0, 0);" class="list-paddingleft-1"> <li> <section> <span leaf=""> <br class="ProseMirror-trailingBreak"> </span> </section> </li> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> <strong style="color: rgb(0, 0, 0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0, 0, 0, 0.4); border-bottom-color: rgba(0, 0, 0, 0.4); border-left-color: rgba(0, 0, 0, 0.4); border-right-color: rgba(0, 0, 0, 0.4); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;"> <span leaf=""> 背景概述 </span> </strong> </section> </li> <ul style="list-style-type: disc; margin-top: 8px; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; color: rgb(0, 0, 0);" class="list-paddingleft-1"> <li> <section> <span leaf=""> <br class="ProseMirror-trailingBreak"> </span> </section> </li> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> <span leaf=""> 自考作为我国终身教育体系的重要组成部分(2023年报考人数突破2700万) </span> </section> </li> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> <span leaf=""> 学历认可度:国家承认学历,学信网可查,与统招学历具有同等法律效力 </span> </section> </li> </ul> </ol> </section>
07-0818年时我已经和微信那边的确认,配合测试,反馈是getLocation()确实有问题,像超时,wifi没有开启,系统错误,误差十几公里甚至上百公里等等问题,解决问题几个月了,一样没有得到解决,说是会出新的接口,现在都9个多月过去了,也没有解决,我们几百人都在配合测试,后来微信那边的员工也不回我了,无语,真不知道微信办事效率这么低。我真不相信微信现在有很多人用,像2019.5.25-2019.5.26,出现严重bug,微信更新了 WeChatLib:2.7.1(2019.5.24 11:50:59),造成小程序在多个input来回切换或切换至密码类型的input时,无法输入,结果就是无法登录,我在论坛上也没有找到相关问题,到2019.5.27(星期一)才还原WeChatLib的上一个版本,想想这办事效率。毕竟人家才是王。咱门有气没地方出,一个论坛一提问几乎就是石沉大海了,最多一,二次回答,要什么?呵呵。
wx.getLocation 返回定位精度不准问题- 需求的场景描述(希望解决的问题) wx.getLocation 获取定位的时候,用的gcj02,altitude传入true,返回的是小数点后6位的经纬度。发现手机真机定位的时候返回定位精度不准,有时候位置还可以,有时候偏了几百米。当应用需要精准定位,偏了几百米,这误差有点不能接受,用户完全找不到地方啊。 - 希望提供的能力 像百度地图Android定位SDK提供GPS、基站、WI-FI、地磁、蓝牙、传感器等多种定位方式,适用于室内、室外多种定位场景。但百度地图微信小程序API不提供定位功能,定位用的也是小程序的wx.getLocation。目前也没有发现微信小程序自身提供高精度定位,希望微信小程序能提供高精度定位或 有其他方法解决定位精度不足的问题。
2019-07-0118年时我已经和微信那边的确认,配合测试,反馈是getLocation()确实有问题,像超时,wifi没有开启,系统错误,误差十几公里甚至上百公里等等问题,解决问题几个月了,一样没有得到解决,说是会出新的接口,现在都9个多月过去了,也没有解决,我们几百人都在配合测试,后来微信那边的员工也不回我了,无语,真不知道微信办事效率这么低。我真不相信微信现在有很多人用,像2019.5.25-2019.5.26,出现严重bug,微信更新了 WeChatLib:2.7.1(2019.5.24 11:50:59),造成小程序在多个input来回切换或切换至密码类型的input时,无法输入,结果就是无法登录,我在论坛上也没有找到相关问题,到2019.5.27(星期一)才还原WeChatLib的上一个版本,想想这办事效率。毕竟人家才是王。咱门有气没地方出,一个论坛一提问几乎就是石沉大海了,最多一,二次回答,要什么?呵呵。
关于小程序获取定位改为直接调用GPS硬件以获得更加精确地址的建议通过小程序定位获得当前位置的功能需求很多人会用到,未来应用的场景肯定也是越来越多,但是小程序获取定位getLocation()有个比较顽固、随机出现但常见的问题,就是定位不准确/不及时的问题,相信我不是第一个遇到的,也不会是最后一个,而且这个问题时不时出现、影响体验。 例如扫码签到同时上送地址的应用场景,我明明已经到B地点了,但是上送的地址却还是原来的A地点(很多人说可能是误差,其实不是,我们遇到太多次了,特别是上下班这种短时间内区域跨度比较大的情况下经常出现),猜测可能是定位被微信缓存了没有真正通过GPS硬件获得实时地址的缘故? 因为遇到的比较多了,我们使用iphone8(普遍性)做过多次试验均出现此问题: ①我在B地点扫码签到发现上送地点是A; ②打开百度/高德地图检查定位是不是不准,点击“定位/重新定位”使得地址正确的在B或B附近; ③重新扫码签到,发现上送的地点还是A; 证明:getLocation()获得的地址被缓存了/没有通过GPS硬件获得实时地址 关键问题是A和B地点的误差范围比较大,大到超出5km的情况都出现过(已经在围栏误差范围外了),地球/火星坐标系等等参数已经试过无数次了在生产复杂环境下还是没有得到解决。 希望官方对获取定位的API能有优化,建议小程序获取定位改为直接调用GPS硬件以获得更加精确地址。 如果使用方法不对也请指正,谢谢。
2019-07-01应该是他们更新了类库,我在昨天发现在安卓上出现,现在小程序都无法登录了,只要和密码类型的input,一次就重新问题,我测试了京东,小程序示例等小程序,同样有这个bug https://developers.weixin.qq.com/community/develop/doc/0008a8650b0e8867c69868b0356400?highLine=input%25E7%25BB%2584%25E4%25BB%25B6
关于华为手机input[type=password]的一个疑问- 在华为手机HUAWEI-COR-AL10或者其他型号中,如果两个input相互获取焦点和失去焦点切换时,切换到type=password时会有一个input失效无法点击 - 失去焦点或获取焦点切换不会出现这种情况 - 无 - 代码直接就两个input相互切换即可
2019-05-26应该是他们更新了类库,我在昨天发现在安卓上出现,现在小程序都无法登录了,只要和密码类型的input,一次就重新问题,我测试了京东,小程序示例等小程序,同样有这个bug https://developers.weixin.qq.com/community/develop/doc/0008a8650b0e8867c69868b0356400?highLine=input%25E7%25BB%2584%25E4%25BB%25B6
小程序input框获取不到焦点,打不上字input框点击获取不到焦点,导致手机键盘出不来,打不上字,而且是有时候能打上字有时候打不上字,同一页面多个input框,不定时就会有几个出现问题,这是怎么回事,怎么解决啊
2019-05-26应该是他们更新了类库,我在昨天发现在安卓上出现,现在小程序都无法登录了,只要和密码类型的input,一次就重新问题,我测试了京东,小程序示例等小程序,同样有这个bug https://developers.weixin.qq.com/community/develop/doc/0008a8650b0e8867c69868b0356400?highLine=input%25E7%25BB%2584%25E4%25BB%25B6
大佬们。来看一个新奇特的问题。现在登录页面,布局是这样的,用户输入手机号和密码,然后执行登录操作。 [图片] 然后循环点击两个文本框,点击几次后,有一个文本框就不能再点击了。效果如下图。 [图片] 代码如下。 [图片] [图片] 问题解决过程, 1.最开始判断问题出现的原因可能是绑定事件,然后去掉了绑定事件。结果不行。问题存在。 2.在1的基础上,去掉了placeholder。结果不行,问题还是存在。 3.去掉样式,布局,只写了4个input组件。问题还是存在。 [图片] 测试手机小米MIX2 微信版本7.0.4
2019-05-26应该是他们更新了类库,我在昨天发现在安卓上出现,现在小程序都无法登录了,只要和密码类型的input,一次就重新问题,我测试了京东,小程序示例等小程序,同样有这个bug https://developers.weixin.qq.com/community/develop/doc/0008a8650b0e8867c69868b0356400?highLine=input%25E7%25BB%2584%25E4%25BB%25B6
input组件严重bugInput组件发现严重bug,最开始taro内使用taro的input发现问题,后来使用原生小程序语法测试,出现同样问题,多个input组件在互相切换时,出现无法使用的情况,视频没办法上传,只能放到百度云了,gif也上传失败,社区也不好用,真的是醉醉的。 链接: https://pan.baidu.com/s/1pCK3Lda87r2anMFpU2oj0A 提取码: cdr2 复制这段内容后打开百度网盘手机App,操作更方便哦 复现步骤,在多个input之前切换,但是不要输入,一直来回切换,在placeholder消失后,这个input框就没法用了,看小程序后台反馈,多是oppo 锤子手机,还有部分三星,小米,用户反馈有很多人都无法录入,这是个严重的问题,希望修复。 代码是最简单的在官方编辑器里面初始化一个小程序,然后,在wxml里面写几个input [代码]<!--index.wxml-->[代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"container"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"section"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]placeholder[代码][代码]=[代码][代码]"这是一个可以自动聚焦的input"[代码] [代码]/>[代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"section"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]placeholder[代码][代码]=[代码][代码]"这是一个可以自动聚焦的input"[代码] [代码]/>[代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"section"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]placeholder[代码][代码]=[代码][代码]"这是一个可以自动聚焦的input"[代码] [代码]/>[代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码]</[代码][代码]view[代码][代码]>[代码]
2019-05-26强烈建议
关于增加表单输入类型的建议希望,微信小程序可以支持颜色选择器,就像HTML的<input type="color">
2018-11-05我的也是,今天出了两次
微信报警器问题Appid: wx8cd649e94a352020 昵称: 勾勾go 时间: 2018-09-20 18:59:40 次数: 5分钟 17次 类型:脚本错误 错误样例: APP-SERVICE-SDK:setStorageSync:fail update DB data info fail;at pages/shai/index page onTabItemTap function 登录公众平台小程序运维中心可查看更多错误信息 setStorageSync,onTabItemTap这两个都是微信api的方法,新的版本无缘无故报错,想不明白
2018-10-15兄弟能否给个购买地址和demo,825049875@qq.com
官方能不能给个连接蓝牙打印机打印文字的demo如题!
2018-10-06