我正在尝试使用autoComplete属性来获取信用卡详细信息(不以任何形式包装),但它不起作用.
任何猜测?自动填充功能是否需要https才能运行?
我使用Safari和Chrome尝试过以下操作:
< input type =’text’placeholder =’xxxx xxxx xxxx xxxx’value = {this.state.card} autoComplete =’on’/>
< input type =’text’placeholder =’xxxx xxxx xxxx xxxx’value = {this.state.card} autoComplete =’cc-number’/>
最佳答案 我发现我必须将所有输入包装在< form>中元件.空的很好.