TextInput should be given height

1TextInput should be given height, or it will not display in IOS.

2JavaScript substring( ) 方法

substring() 方法用于提取字符串中介于两个指定下标之间的字符。

substr() 方法可在字符串中抽取从 start 下标开始的指定数目的字符。

注释:substr() 的参数指定的是子串的开始位置和长度,因此它可以替代 substring() 和 slice() 来使用。

重要事项:ECMAscript 没有对该方法进行标准化,因此反对使用它。

重要事项:在 IE 4 中,参数 start 的值无效。在这个 BUG 中,start 规定的是第 0 个字符的位置。在之后的版本中,此 BUG 已被修正。


3把页面内容写在return里,否则是不会显示什么内容的

TextInput should be given height_第1张图片

你可能感兴趣的:(TextInput should be given height)