它可以让一个元素加载后获取焦点,
在此之前一般要通过使用javascript的focus()方法实现我们的要求,非常的简单,代码如下:
< input type = "text" autofocus = "autofocus" />< textarea autofocus = "autofocus" >元素模板</ textarea >
< input type = "text" autofocus = "autofocus" />< textarea autofocus = "autofocus" >元素模板</ textarea >