autofocus是input的原生属性,饿了么组件也支持这种方法, 但是input外面还有其他组件, 导致autofocus失效, 只能手动调用focus方法 转载于:https://www.cnblogs.com/Shysun/p/10072126.html