导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. yunziyanll
    Y
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    yunziyanll

    @yunziyanll

    0
    声望
    13
    帖子
    973
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    yunziyanll 关注

    yunziyanll 发布的帖子

    • RE: Taro 3.0.9 中已经没有@Tarojs/redux包了,文档还是写如何使用@tarojs.redux,是文档没更新,还是我自己理解错了?

      taro3里面 redux相关的包 都简易使用react的 taro不维护了这些包了

      发布在 Taro 实践 + 案例
      Y
      yunziyanll
    • Input组件的onInput事件触发时 return的字符串不能改变输入框的值?

      Input组件的onInput事件触发时 return的字符串不能改变输入框的值?
      如图这个是小程序官网给的demo截图
      64f3ac92-0327-43af-90b6-8438ec531de2-image.png
      在3.0.7中使用 Input输入框的值 并没有改变 一下是代码

      <Input
       placeholder='输入连续的两个11替换2'
       type='digit'
       onInput={this.replaceInput}
       />
      

      下面是js

      replaceInput = e => {
          console.log(e)
          let value = e.detail.value
          return value.replace(/11/g, '2')
        }
      

      下面是小程序的效果
      81d788b9-ccc2-46c3-bd78-8764b58dcc2d-image.png
      连续的两个1并没有变成2

      发布在 微信小程序
      Y
      yunziyanll
    • v2.2.6小程序插件开发 安装依赖失败 报错Unexpected end of JSON input while parsing near '...518244740841},"2.7.2-'

      判断之后发现 安装包 @tarojs/mini-runner 在报错Unexpected end of JSON input while parsing near '...518244740841},"2.7.2-'
      清node缓存 重新装node 都不不行 有没有大神遇见过

      发布在 Taro
      Y
      yunziyanll
    • taro开发小程序插件 没有index.js

      taro开发小程序插件 插件的目录下没有index.js

      发布在 微信小程序
      Y
      yunziyanll
    • RE: 创建的小程序没有`sitemap.json`文件, 自己添加也不会编译到小程序中,ext.json 文件自己添加也不会编译到小程序中

      没有解决 都是手动添加到根目录

      发布在 微信小程序
      Y
      yunziyanll
    • RE: init 选择微信插件以及redux模板报错

      cda8e639-5607-4ca0-ac1a-43899aa780f3-image.png
      这个是错误截图

      发布在 提 Bug
      Y
      yunziyanll
    • init 选择微信插件以及redux模板报错

      初始化项目时 选择模板报错
      Unexpected token < in JSON at position 183

      发布在 提 Bug
      Y
      yunziyanll
    • RE: canvas type "2d" 不支持嘛?

      支持吧 我的项目刚用了2d的 canvas
      <Canvas type='2d' id='myCanvas' className='my-canvas'></Canvas>
      下面是获取上下文的方法


      // 获取canvas 上下文
      getCanvas = height => {
      // 创建查询 选择节点 获取节点实例
      Taro.createSelectorQuery()
      .select(#myCanvas)
      .fields({ node: true, size: true })
      .exec(async res => {
      console.log(res, res[0])
      this.canvas = res[0].node
      await this.setState({height})
      // 设置画布的宽高
      this.canvas.width = 600
      this.canvas.height = height
      let ctx = await this.canvas.getContext('2d')
      // 根据图片数量生成不同的海报
      console.log(去生成海报)
      await this.saveCanvasToImage(ctx, height)
      // 轮询能保存海报的时候 保存海报
      this.loopDramPoster(height)
      })
      }

      发布在 微信小程序
      Y
      yunziyanll
    • RE: npm run dev:h5 之后编译的文件没有app.js

      这个问题昨天晚上测试一下 发现 app.jsx的入口文件中,只要使用模板字符串语法 编译后的h5就没有 app.js文件

      发布在 H5
      Y
      yunziyanll
    • 创建的小程序没有`sitemap.json`文件, 自己添加也不会编译到小程序中,ext.json 文件自己添加也不会编译到小程序中

      小程序 ext.json这个文件 在编译的时候 根本不会编译到小程序里, 还有为什么创建的小程序 没有sitemap.json这个文件 自己在src里添加了 也不会被表一到小程序中

      发布在 微信小程序
      Y
      yunziyanll