- 为什么小程序自定义rabbar的wxss文件不支持var变量?
正常组件是没问题的 如果按照官方文档用custom-tab-bar 来自定义,就有问题。 [图片]
2023-03-27 - iconfont第三方引入base64出现图标全黑?
基础库 2.30.0 [图片] iconfont.wxss文件 @font-face { font-family: 'iconfont'; src: url('data:font/ttf;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTZXBn5sAAAgoAAAAHEdERUYAKQALAAAICAAAAB5PUy8yPFNI7gAAAVgAAABgY21hcAAP6coAAAHMAAABQmdhc3D//wADAAAIAAAAAAhnbHlmGyvw0QAAAxwAAAIcaGVhZCM8vI8AAADcAAAANmhoZWEH3gOFAAABFAAAACRobXR4DAAAAAAAAbgAAAASbG9jYQCWAQ4AAAMQAAAADG1heHABFABzAAABOAAAACBuYW1lXoIBAgAABTgAAAKCcG9zdDQ8hm0AAAe8AAAARAABAAAAAQAAPrFM2l8PPPUACwQAAAAAAOAOvEkAAAAA4A68SQAA/4AEAAOAAAAACAACAAAAAAAAAAEAAAOA/4AAXAQAAAAAAAQAAAEAAAAAAAAAAAAAAAAAAAAEAAEAAAAFAGcABQAAAAAAAgAAAAoACgAAAP8AAAAAAAAABAQAAZAABQAAAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZADA5h7mHwOA/4AAAAPcAIAAAAABAAAAAAAAAAAAAAAgAAEEAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAMAAAADAAAAHAABAAAAAAA8AAMAAQAAABwABAAgAAAABAAEAAEAAOYf//8AAOYe//8Z5QABAAAAAAAAAQYAAAEAAAAAAAAAAQIAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ECQADABAAbwADAAEECQAEABAAigADAAEECQAFABYApQADAAEECQAGABAAyQADAAEECQAKAFYA5AADAAEECQALACYBaABDAHIAZQBhAHQAZQBkACAAYgB5ACAAaQBjAG8AbgBmAG8AbgB0AABDcmVhdGVkIGJ5IGljb25mb250AABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABSAGUAZwB1AGwAYQByAABSZWd1bGFyAABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABWAGUAcgBzAGkAbwBuACAAMQAuADAAAFZlcnNpb24gMS4wAABpAGMAbwBuAGYAbwBuAHQAAGljb25mb250AABHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAABHZW5lcmF0ZWQgYnkgc3ZnMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuAABoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAABodHRwOi8vZm9udGVsbG8uY29tAAAAAAIAAAAAAAAACgAAAAAAAQAAAAAAAAAAAAAAAAAAAAAABQAAAAEAAgECAQMMemFpeGlhbnppeHVuCmp1YmFvLWNvcHkAAAAB//8AAgABAAAADAAAABYAAAACAAEAAwAEAAEABAAAAAIAAAAAAAAAAQAAAADVpCcIAAAAAOAOvEkAAAAA4A68SQ==') format('truetype'); font-weight: normal; font-style: normal; font-display: swap; } .iconfont { font-family: 'iconfont' !important; font-size: 50px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-jubao-copy:before { content: '\e61f'; } .icon-zaixianzixun:before { content: '\e61e'; } [图片] 已导入全局app 但是效果是这样的 [图片] 黑色方块就是我引入的图标 <text class="iconfont icon-jubao-copy"></text> 前面那个正常的 是我用其他人的文件 直接用的 没问题 我也不知道哪出问题了 求助
2023-02-13 - removeStorage无法生效?
api: removeStorage // 本地存储 save() { // wx.setStorageSync('pop', {id:1,name:'zzz'}) wx.setStorage({ key: 'pop', data: { id: 1, name: 'zzz' }, success(res) { console.log(res) } }) }, get() { // console.log(wx.getStorageSync('pop')); wx.getStorage({ key: 'pop', success(res) { console.log(res) } }) }, del() { // wx.removeStorageSync("pop"); wx.removeStorage({ key: 'pop', success(e) { console.log(e) } }) }, clear(){ wx.clearStorageSync() wx.clearStorage() } <!-- 本地存储 --> <button type="primary" size="mini" bindtap="save">本地存储==存</button> <button type="primary" size="mini" bindtap="get">本地存储==取</button> <button type="primary" size="mini" bindtap="del">本地存储==删</button> <button type="primary" size="mini" bindtap="clear">本地存储==清空</button> [图片] 存取删正常 存取立即删除再取 也会发现pop的值已经没了,不会输出取的值 但是 storage一直存在pop这个值 无论怎么删除 清空都会存在 基础库也换了好几个, 微信开发工具也换了几个 [图片]
2023-01-30