小程序页面介绍

页面重新渲染,需要在页面脚本调用 this.setData 方法:<view>{{text}}</view><button onTap="changeText">Change normal data以上代码指定用户触摸按钮时,调用 changeText 方法:Page({ data:{ text:'init data',},changeText(){ this....

组件对象

自定义组件的 axml 的事件只能由自定义组件的 js 的 methods 的方法来响应,如果需要调用父组件传递过来的函数,可以在 methods 通过 this.props 调用。components/counter/index.js Component({ data:{ counter:0 },/设置默认属性 ...

配置UA黑白名单

白名单下:规则包含 this-is-empty-ua,表示如果用户请求携带了User-Agent请求头,但是值为空,则允许该请求。黑名单下:规则包含 this-is-empty-ua,表示如果用户请求携带了User-Agent请求头,但是值为空,则拒绝该请求。如果您...

配置UA黑白名单

白名单下:规则包含 this-is-empty-ua,表示如果用户请求携带了User-Agent请求头,但是值为空,则允许该请求。黑名单下:规则包含 this-is-empty-ua,表示如果用户请求携带了User-Agent请求头,但是值为空,则拒绝该请求。如果您...

页面

Page({ data:{ text:'init data',},changeText(){ this.setData({ text:'changed data' })},})上面代码,在 changeText 方法调用了 this.setData 方法,会导致页面的重新渲染。Page()Page()接受一个 object 作为参数,该参数用来指定...

实现自定义组件

this.$html=$(html);},createEl:function(el){ this.$html.find('.ad').attr('src',this.adAddress);var$adWrapper=this.$html.find('.ad-wrapper');adWrapper.attr('href',this.toAddress);adWrapper.click(function(){ Aliplayer.util....

实现自定义组件

this.$html=$(html);},createEl:function(el){ this.$html.find('.ad').attr('src',this.adAddress);var$adWrapper=this.$html.find('.ad-wrapper');adWrapper.attr('href',this.toAddress);adWrapper.click(function(){ Aliplayer.util....

页面注册

Page(object:Object)在/pages 目录的.js 文件定义 Page(),用于注册一个小程序页面,接受一个 object 作为属性,用来指定页面的初始数据、生命周期回调、事件处理等信息。以下为一个基本的页面代码:/pages/index/index.js Page({ data:{...

DataV使用静态资源&组件兼容介绍

设置代码请参见:/需要在package.json注册的代码"config":{"path":{"type":"hidden","default":"./resources/xiaowu.jpg"} },/需要在index.js使用的内容 this.container.html(`${cfg.path}>`);说明 新建的文件夹名称是固定的,必须是...

定义属性

} 执行以下命令运行组件的应用文件:cd<项目名>#安装依赖 bnpm install#启动应用 npm run start 从组件入口文件 index.tsx 的 this.props ,通过唯一标识符 identifier 获取到了 tempature 这个属性值,并展示在页面:名词说明 当属性...

标签页(Tabs)

重要 目前一个页面仅支持使用一次 Tabs 组件。在基础库 2.x 版本下,内嵌 scroll-view 产生 scroll-view 无法滚动的情况,建议 scroll-view 阻止 touch 事件冒泡:catchTouchStart、catchTouchMove。Tabs 内部使用 transform 样式以进行...

容器垂直伸缩(VPA)

VPA也会保持最初容器定义资源request和limit的占比。本文介绍如何配置YAML实现容器的垂直伸缩。前提条件 请确保您已完成以下操作:已创建一个Kubernetes集群,且ACK Kubernetes版本高于1.12。具体操作请参见 创建Kubernetes托管版集群。...

基于MaxCompute UDF将IPv4或IPv6地址转换为归属地

}/*IPv4地址转有符号byte[5]*/private static byte[]ipv4ToBytes(String ipv4){ byte[]ret=new byte[5];ret[0]=0;先找到ip地址字符串.的位置 int position1=ipv4.indexOf(".");int position2=ipv4.indexOf(".",position1+1);int position...

ALIYUN:EDAS:K8sApplication

ALIYUN:EDAS:K8sApplication类型用于在Kubernetes集群创建应用。语法 {"Type":"ALIYUN:EDAS:K8sApplication","Properties":{"LogicalRegionId":String,"NasId":String,"Liveness":Map,"IntranetSlbId":String,"WebContainer":String,...

更新实例配置

1#number of segments to sync,segments with top largest buffer will be synced.watermarkStandalone:0.2#memory watermark for standalone,upon reaching this watermark,segments will be synced.watermarkCluster:0.5#memory ...

容器垂直伸缩(VPA)

VPA也会保持最初容器定义资源request和limit的占比。本文介绍如何配置YAML实现容器的垂直伸缩。前提条件 请确保您已完成以下操作:已创建一个Kubernetes集群,且Kubernetes版本高于1.12。具体操作,请参见 创建ACK Serverless集群。已...

Spark-Submit命令行工具

medium|large|xlarge|2xlarge you can also set this value through-conf spark.driver.resourceSpec=<value>-executor-resource-spec Indicates the resource specifications used by the executor:small|medium|large|xlarge|2xlarge you...

开发和管理自定义页面

轻应用支持使用系统提供的标准组件搭建页面,并支持通过JSX编写简单...调用后端服务方法*@param 后端服务方法编码*@param 服务方法入参,所有参数放在一个对象传入*/this.my.invokeFunction("functionCode",{})/*快捷调用警告对话框*@param*...

概述

text":"鼠标移入","fields":[{"identifier":"status","description":"当前值"}]}]} 说明 src/index.tsx 代码 updateValue 方法下 this.$emit 的第二个参数字段必须与 src/specs/specs.js 代码 events.fields 的 identifier 字段保持...

ModifyElasticityAssurance-修改一个弹性保障服务的...

8455DD10-84F8-43C9-8365-5F448EB169B6 示例 正常返回示例 JSON 格式 {"RequestId":"8455DD10-84F8-43C9-8365-5F448EB169B6"} JSON 格式 {"RequestId":"8455DD10-84F8-43C9-8365-5F448EB169B6"} 错误码 HTTP status code 错误码 错误信息 ...

ModifyCapacityReservation-修改一个容量预定服务的...

调试 您可以在OpenAPI Explorer直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。调试 授权信息 下表是API对应的授权信息,可以在RAM权限策略语句的 Action 元素使用,用来给RAM用户或RAM...

生命周期

在onInit,可以:访问 this.is、this.$id、this.$page 等属性。访问 this.data、this.props 等属性。访问组件 methods 的自定义属性。调用 this.setData、this.$spliceData 修改数据。代码示例一:/components/counter/index.js ...

No route info of this topic”错误

问题现象 使用TCP协议SDK发送消息时,云消息队列 RocketMQ 版 服务端返回如下错误:Caused by:com.aliyun.openservices.shade.com.alibaba.rocketmq.client.exception.MQClientException: No route info of this topic 可能原因 代码设置...

本地开发测试

}/如果不需要国际化和主题设置,则删除ConfigContext.Consumer相关代码,直接写jsx render():JSX.Element {/通过this.props获取specs的配置值 const {$width,width,$height,height,searchBackgrund,boolstatus }=this.props;const style=...

CopyDatabase-复制数据库

调试 您可以在OpenAPI Explorer直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。调试 授权信息 当前API暂无授权信息透出。请求参数 名称 类型 必填 描述 示例值 ResourceGroupId string 否...

CopyDatabase-复制数据库

调试 您可以在OpenAPI Explorer直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。调试 授权信息 当前API暂无授权信息透出。请求参数 名称 类型 必填 描述 示例值 ResourceGroupId string 否...

CopyDatabase-复制数据库

调试 您可以在OpenAPI Explorer直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。调试 授权信息 当前API暂无授权信息透出。请求参数 名称 类型 必填 描述 示例值 ResourceGroupId string 否...

CopyDatabase-复制数据库

调试 您可以在OpenAPI Explorer直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。调试 授权信息 当前API暂无授权信息透出。请求参数 名称 类型 必填 描述 示例值 ResourceGroupId string 否...

CopyDatabase-复制数据库

调试 您可以在OpenAPI Explorer直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。调试 授权信息 当前API暂无授权信息透出。请求参数 名称 类型 必填 描述 示例值 ResourceGroupId string 否...

alicloud_rds_backups

only MySQL 5.6 returns this parameter,and other versions return 0.copy_only_backup-The backup mode is divided into the normal backup mode(full and incremental recovery is supported)and the replication-only mode(full ...

alicloud_dts_instance

the values are:1,2,3,4,5,6,7,8,and 9.When Period is Year,the values are 1,2,3,and 5.NOTE:This parameter is valid and must be passed in only when payment_type is Subscription.The billing method of the subscription instance....

alicloud_alikafka_instance

From version 1.161.0,this attribute supports to be updated.Valid values:4:eip/vpc instance 5:vpc instance.io_max-(Optional)The max value of io of the instance.When modify this value,it only support adjust to a greater ...

alicloud_rds_clone_db_instance

version-(Optional,Computed,ForceNew)Database version.Value:MySQL:5.5/5.6/5.7/8.0 SQL Server:2008r2/08r2_ent_ha/2012/2012_ent_ha/2012_std_ha/2012_web/2014_std_ha/2016_ent_ha/2016_std_ha/2016_web/2017_std_ha/2017_ent/2019_...

alicloud_wafv3_domains

This data source provides the Wafv3 Domains of the current Alibaba Cloud user.->NOTE:Available since v1.200.0.Example Usage Basic Usage data"alicloud_wafv3_instances""default"{ } data"alicloud_wafv3_domains""ids"{ instance...

alicloud_rds_upgrade_db_instance

ForceNew)Database version.Value:MySQL:5.5/5.6/5.7/8.0.SQL Server:2008r2/08r2_ent_ha/2012/2012_ent_ha/2012_std_ha/2012_web/2014_std_ha/2016_ent_ha/2016_std_ha/2016_web/2017_std_ha/2017_ent/2019_std_ha/2019_ent.PostgreSQL:9....

alicloud_rds_class_details

code-(Required,ForceNew)The code of the instance type.engine_version-(Required,ForceNew)Database version.Value options:MySQL:[5.55.6、5.7、8.0]SQLServer:[2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、...

alicloud_db_instance_classes

This data source provides the RDS instance classes resource available info of Alibaba Cloud.->NOTE:Available in v1.46.0+Example Usage data"alicloud_db_instance_classes""resources"{ instance_charge_type="PostPaid"engine=...

alicloud_wafv3_domain

to-origin domain name of the server.connect_timeout-(Optional)Connection timeout.Unit:seconds,value range:5~120.focus_http_backend - (Optional)Whether to enable forced HTTP back-to-origin. This parameter is used only if ...

alicloud_rds_ddr_instance

storage in the template value.instance_storage-(Required)The storage capacity of the destination instance.Valid values:5 to 2000.Unit:GB.This value must be a multiple of 5 GB.For more information,see Primary ApsaraDB RDS ...

alicloud_ram_policy

then you can delete resource forcefully.->NOTE:Each policy can own at most 5 versions and the oldest version will be removed after its version achieves 5.->NOTE:If the policy has multiple versions,all non-default versions ...
共有200条 < 1 2 3 4 ... 200 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
弹性公网IP 短信服务 人工智能平台 PAI 物联网平台 对象存储 金融分布式架构
新人特惠 爆款特惠 最新活动 免费试用