<input onclick="rqn()" style="cursor: pointer;" type="button" value="1-70 的亂數" />
document.getElementById("rqn").value=Math.floor(Math.random()*70+1);
}
rqn();
</script>
| 亂數 | Math.random() | button | readonly | onclick | input | function | script |...", "image": [ { "@type": "ImageObject", "url": "https://s3.1px.tw/blog/common/avatar/blog_cover_dark.jpg" } ], "author": { "@id": "https://c8cc168.pixnet.net#person" }, "publisher": { "@type": "Organization", "name": "PIXNET", "url": "https://www.pixnet.net", "logo": { "@type": "ImageObject", "url": "https://static.1px.tw/pixnet-next/_next/static/media/pixnet-logo.692e9b3e.svg" } }, "datePublished": "2014-11-28T23:47:00+08:00", "dateModified": "2015-01-15T14:30:09+08:00", "inLanguage": "zh-TW", "articleSection": "random()", "keywords": [], "isPartOf": { "@type": "Blog", "@id": "https://c8cc168.pixnet.net/blog#blog" } }
請先 登入 以發表留言。