我需要将以下 javascript 代码调整为 amp 页面。
<select id="url">
<option value='home'>home</option>
<option value='contact'>contact</option>
</select>
<input type="button" value='ir' onclick='ir()'>
<script>
function ir(){
var url=document.getElementById("url").value;
location.href=url;
}
</script>
Run Code Online (Sandbox Code Playgroud)
这是可能的?
在文档中我没有找到答案。
amp-html ×1