简体中文
外观
UITextView
hasText
hasText 属性表示多行输入里有没有内容。
布尔。
true
false
TypeError
input
const input = new UITextView(); input.text = 'a'; console.log(input.hasText);
结果:输出 true。
UITextView.hasText(UIKeyInput 协议)。
UITextView.hasText
UIKeyInput
text