我正在尝试将其用作我的选项页面:
<!DOCTYPE html>
<html>
<head>
<title>Salty Better Options</title>
<script type="text/javascript" src="options.js"></script>
</head>
<body onload="loadOptions()">
<hi>Layout</hi>
<select id="layout">
<option value="default">Default</option>
<option value="noChat">No chat</option>
<option value="noBettors">No bettors leaderboard</option>
<option value="onlyStream">Only stream</option>
</select>
<br />
<br />
<button onclick="saveOptions()">Save</button>
</body>
</html>
每当我按下保存按钮时,我都会收到错误:http://puu.sh/4tETk/ae303601d2.png
我认为这是因为我在HTML中加载了javascript,但我该怎么办呢?