清除input表单内容

碰到几次情况,页面刷新或者从上级页面返回表单的内容依然遗留,很影响使用。

<form action="" method="" autocomplete="off">

在表单里面添加 autocomplete="off"就可以清除表单内容

原文地址:https://www.cnblogs.com/lhj-blog/p/5821206.html