限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。

小程序

小程序 | 插槽的使用

Component({ /** * 组件的属性列表 */ options:{ // 启用多插槽 multipleSlots:true }, properties: { text:String }, }) //定义 {{text}} //使用 {{'+'+item.nums}}

作者
王明昌
发布时间
Component({
  /**
   * 组件的属性列表
   */
 
  options:{
     // 启用多插槽
    multipleSlots:true
  },
  properties: {
    text:String
  },

})

//定义

  {{text}}
  
  



//使用


  {{'+'+item.nums}}
0/500
友善分享您的看法。
反馈邮箱