只是不确定有什么区别。试图找出最适合我的用例的方法。
最佳答案
区别在于 HTML
与AngularJS
无关.不管怎样,来自 W3Schools 网站的一些定义:
输入类型文本:
The
<input>
tag specifies an input field where the user can enter data.
<input>
elements are used within a<form>
element to declare input controls that allow users to input data.An input field can vary in many ways, depending on the type attribute.
文本区域:
The
<textarea>
tag defines a multi-line text input control.A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).
The size of a text area can be specified by the
cols
androws
attributes, or even better; through CSS'height
andwidth
properties.
关于html - angularjs中textarea和输入类型文本有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21698065/