Dijit/form/textbox: A basic text box
Dijit/form/simpletextarea: A large number of text input, a basic textarea
Dijit/form/textarea: One extended dijit/form/simpletextarea dynamically increases or reduces its height
Dijit/form/numbertextboxOrDijit/form/numberspinner: The input is a number. Make sure to enter a text box. dijit/form/numberspinner provides a button to extend dijit/form/numbertextbox to gradually change the value.
Dijit/form/datetextbox: The input is a date, a text box, including a pop-up calendar
Dijit/form/timetextbox: The input is time, a text box, including a pop-up time Selector
Dijit/form/currencytextbox: The input is a currency, and an extended dijit/form/numbertextbox localized currency
Dijit/form/validationtextbox: A Basic verification capability that can be further customized
If you want to use dijit/form/datetextbox or dijit/form/timetextbox, You need to introduce CSS with themes and set the CSS style of the Body element.
-- Statement method:
<!DOCTYPE html>
Result:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/84/wKiom1RSXG2TsHeyAACiYxAEI2Q870.jpg "Title =" 1.jpg "alt =" wkiom1rsxg2tsheyaaciyxaei2q870.jpg "/>
-- Programming Method
<!DOCTYPE html>
Result:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/84/wKioL1RSXWPwpyqlAACGmVPtBtk042.jpg "Title =" 2.jpg "alt =" wkiol1rsxwpwpyqlaacgmvptbtk042.jpg "/>
Note: The difference between the placeholder and the value attribute is that the text disappears when the placeholder enters the focus point in the input box, but the value does not.
-- Use the Set () method and get () method:
<!DOCTYPE html>
Http://www.myexception.cn/web/423404.html
This article is from the "IT technology learning and communication" blog!
Dojo learning notes (13): dojo form controls -- textbox and its variants