|
这还需要提供代码吗?我基本就是复制的文档里面的例子
var button = api.require('UIButton');
button.open({
rect:{
x: 100,
y: 100,
w: 80,
h: 50
},
corner: 5,
bg: {
normal: "#000000",
highlight: '#ff0000',
active: '#adf000'
},
title:{
size: 14,
highlight: '高亮状态标题',
active: '选中后标题',
normal: "常态标题",
highlightColor: '#000000',
activeColor: '#000adf',
normalColor: "#ff0000",
alignment: 'center'
},
fixed: false,
move: true
},function( ret ){
}); |
|