https://github.com/freezerup/mp-issues/tree/master/components/customNavigation
发现有小程序在导航栏放置了自定义搜索框,请问大神们这是如何做到的?今日发现一个小程序 如下图, 在导航栏放置了 自定义的字体效果和搜索栏, 请问是如何做到的? 且点击导航栏的搜索框后 会页面跳转到搜索内容,点击其他区域不会 [图片]
2019-05-08https://github.com/freezerup/mp-issues/tree/master/pages/swiper
swiper item循环过多渲染慢 卡顿问题做一个答题的小程序 用的swiper实现滑动切换,一开始请求50条数据循环渲染item,渲染慢,而且滑动起来卡顿
2019-05-07global相当于window. 目前没有遇到坑,比globalData更灵活
小程序中的global在开发过程中,发现可以用global存放一些东西。 比如 global.regeneratorRuntime = require('./utils/plugins/regenerator-runtime/runtime.js'); 又或者 global.userInfo = {}; 但是还有一种全局变量 App({ globalData:{ } }) 是官方文档上提供的。 因为没在官方文档中看到global变量,但实在又比较好用。就想问一下,使用global 会有什么问题,会出现什么bug,或者说会有什么坑吗? 用global跟用App({globalData})有什么区别吗? 求官方解答下
2019-05-06文件名:regenerator 引入路径:../regenerator-runtime
引入runtime.js识别不到我再fb的官网下载了runtime包 https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime 然后在js脚本文件中 使用: const regeneratorRuntime = require('../../regenerator-runtime/runtime.js') 勾选了ES6转ES5的选项 目录结构如图 [图片] 我再relationResult下的页面 倒入runtime包,时 报错如下: sdk uncaught third Error module "regenerator-runtime/runtime.js" is not defined Error: module "regenerator-runtime/runtime.js" is not defined
2019-05-06请问问题解决了吗?我也遇到这个问题。
getPhoneNumber没有回调bindgetphonenumbergetPhoneNumber点击授权后,有时候会没有回调bindgetphonenumber,导致授权不了手机号,有时候正常的。 应该不单单这个微信版本和基础库,其他版本也一样
2018-09-29