简体中文
外观
UIBarItem
tag
tag 属性是给自己用的编号。系统不看它。
整数。
0
Number(v)
TypeError
const item = new UIBarButtonItem({ title: '第二个' }); item.tag = 2; console.log(item.tag);
结果:控制台输出 2。
2
UIBarItem.tag。
UIBarItem.tag