actionSheet
概述
actionSheet ,方便用户事件选择 以下为 actionSheet 相关的 API
API
create(options, callback[options])
调用单选 actionSheet
参数
-
options {Object}
:调用单选 ActionSheet 选项index {number}
:默认选中的选项title {string}
:ActionSheet 名称message {string}
:ActionSheet 提示内容items {array}
:ActionSheet 数据源message {string}
:type {number}
:button类型,cancel(type==1)只能有一个
-
callback {function (ret)}
:执行完读取操作后的回调函数。ret {Object}
为callback
函数的参数,有两个属性:result {string}
:结果三种类型success
,cancel
,error
data {Object}
:选择的结果。index {number}
:选中的项message
:选中的内容
示例
action value: {{value}}