謝孜妤JavaScript物件object繪圖canvas繪製選擇權到期日損益
謝孜妤canvas繪圖套件繪製選擇權到期日損益圖
以上繪製選擇權 a
identifier名稱,身分證id card
<p id="xyz" class="a"></p>
<p id="dog" class="b"></p>
<p id="cat" class="a"></p>
<script>
// Create an object:
const band = {
guitar:"侯麗鷗",
vocals:"蔡依雯",
bass:"林志玲"};
delete band.vocals;
band["singer"] = "劉任昌";
s=""; //定義變數空白
document.getElementById("xyz").innerHTML = Object.keys(band);
document.getElementById("dog").innerHTML = Object.values(band);
for (job in band){
s+= job + "手: " + band[job] + "<br>"};
document.getElementById("cat").innerHTML = s;
</script>
<H1>w3schools學物件</H1>
<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho4JiGSnOa-XJIMRWEI9Iffico8LsUaEO7b_Ijdnzz_Aw2sjVGFR-jlJ8pOkmpwyfY7t0wIvF5oszqzW9f3NwJh37Bg1So7hfTotNFpvBKi4D70Y3OgrT7fY8F9wVVbTvMn-FKuVDE0vXrmDEWMYMnhqfQPg8xLbs0g7r7y2LDHDX2MywwnLFv0LP6ZLc/s1600/%E6%93%B7%E5%8F%96.PNG" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" data-original-height="549" data-original-width="1183" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho4JiGSnOa-XJIMRWEI9Iffico8LsUaEO7b_Ijdnzz_Aw2sjVGFR-jlJ8pOkmpwyfY7t0wIvF5oszqzW9f3NwJh37Bg1So7hfTotNFpvBKi4D70Y3OgrT7fY8F9wVVbTvMn-FKuVDE0vXrmDEWMYMnhqfQPg8xLbs0g7r7y2LDHDX2MywwnLFv0LP6ZLc/s1600/%E6%93%B7%E5%8F%96.PNG"/></a></div>
持續練習,你會成為一個專業神人。https://kitty030994.blogspot.com/2023/12/javascriptobjectcanvas.html
回覆刪除