选择不会在Firefox中的F5上更新

时间:2019-06-22 10:01:45

标签: html firefox

我有以下test.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Example</title>
  </head>
  <body>
    <select name="mode" >
      <option value="1">A</option>
      <option value="2" selected>B</option>
      <option value="3" >C</option>
    </select>
  </body>
</html>

当我在Firefox中打开页面时,选择了B。如果我现在按以下方式修改test.html

<select name="mode" >
  <option value="1" >A</option>
  <option value="2" >B</option>
  <option value="3" selected>C</option>
</select>

并按F5,然后仍然选择B。我必须将网站实际加载到新标签中,以便选择C

这会为动态创建代码的网站带来很多问题,并且选择实际上可能会更改代码。如何告诉Firefox在F5上服从新选择?

0 个答案:

没有答案