HTML DOM Input Time ¶ÔÏó
Input Time ¶ÔÏó
Input Time ¶ÔÏóÊÇ HTML5 ÖеÄжÔÏó¡£
Input Time ¶ÔÏó±íʾ HTML <input type="time"> ÔªËØ¡£
×¢ÊÍ£ºInternet Explorer »ò Firefox ²»Ö§³Ö <input type="time"> ÔªËØ¡£
·ÃÎÊ Input Time ¶ÔÏó
Äú¿ÉÒÔͨ¹ýʹÓà getElementById() À´·ÃÎÊ HTML <input type="time"> ÔªËØ£º
var x = document.getElementById("myTime");
´´½¨ Input Time ¶ÔÏó
Äú¿ÉÒÔͨ¹ýʹÓà document.createElement() ·½·¨À´´´½¨HTML <input type="time"> ÔªËØ£º
var x = document.createElement("INPUT");
x.setAttribute("type", "time");
Input Time ¶ÔÏóÊôÐÔ
| ÊôÐÔ | ÃèÊö |
|---|---|
| autocomplete | ÉèÖûò·µ»Ø time ×Ö¶ÎµÄ autocomplete ÊôÐÔÖµ¡£ |
| autofocus | ÉèÖûò·µ»Ø time ×Ö¶ÎÔÚÒ³Ãæ¼ÓÔØºóÊÇ·ñÓ¦×Ô¶¯»ñÈ¡½¹µã¡£ |
| defaultValue | ÉèÖûò·µ»Ø time ×ֶεÄĬÈÏÖµ¡£ |
| disabled | ÉèÖûò·µ»Ø time ×Ö¶ÎÊÇ·ñ±»½ûÓᣠ|
| form | ·µ»Ø¶Ô°üº¬ time ×Ö¶ÎµÄ±íµ¥µÄÒýÓᣠ|
| list | ·µ»Ø¶Ô°üº¬ time ×Ö¶ÎµÄ datalist µÄÒýÓᣠ|
| max | ÉèÖûò·µ»Ø time ×Ö¶ÎµÄ max ÊôÐÔÖµ¡£ |
| min | ÉèÖûò·µ»Ø time ×Ö¶ÎµÄ min ÊôÐÔÖµ¡£ |
| name | ÉèÖûò·µ»Ø time ×Ö¶ÎµÄ name ÊôÐÔÖµ¡£ |
| readOnly | ÉèÖûò·µ»Ø time ×Ö¶ÎÊÇ·ñÊÇÖ»¶ÁµÄ¡£ |
| required | ÉèÖûò·µ»ØÔÚÌá½»±íµ¥Ö®Ç°ÊÇ·ñ±ØÐëÌîд time ×ֶΡ£ |
| size | ÉèÖûò·µ»Ø time ×Ö¶ÎµÄ size ÊôÐÔÖµ¡£ |
| step | ÉèÖûò·µ»Ø time ×Ö¶ÎµÄ step ÊôÐÔÖµ¡£ |
| type | ·µ»Ø time ×Ö¶ÎµÄ±íµ¥ÔªËØÀàÐÍ¡£ |
| value | ÉèÖûò·µ»Ø time ×Ö¶ÎµÄ value ÊôÐÔÖµ¡£ |
±ê×¼ÊôÐÔºÍʼþ
Ïà¹ØÒ³Ãæ
HTML ½Ì³Ì£ºHTML ±íµ¥
HTML ²Î¿¼Êֲ᣺HTML <input> ±êÇ©
HTML ²Î¿¼Êֲ᣺HTML <input> type ÊôÐÔ