20241028.CANVAS
選擇權到期日損益
if (條件) {成立執行;} else {不成立執行;};以上的程式碼
<h3>選擇權到期日損益</h3><canvas id="Canvas210" width="900" height="500">
</canvas>
<script>
const canvas = document.getElementById("Canvas210");
const BuyPut = canvas.getContext("2d");
BuyPut.beginPath();
BuyPut.moveTo(0,0);
BuyPut.lineTo(200,200);
BuyPut.lineTo(400,200);
BuyPut.strokeStyle = "black";
BuyPut.lineWidth = 2;
BuyPut.font = "32px 標楷體";
BuyPut.fillText("買入賣權Put",200,50);
BuyPut.stroke();
const SellPut = canvas.getContext("2d");
SellPut.beginPath();
SellPut.moveTo(0,500);
SellPut.lineTo(200,300);
SellPut.lineTo(400,300);
SellPut.strokeStyle = "black";
SellPut.lineWidth = 2;
SellPut.stroke();
const BuyCall = canvas.getContext("2d");
BuyCall.beginPath();
BuyCall.moveTo(500,200);
BuyCall.lineTo(700,200);
BuyCall.lineTo(900,0);
BuyCall.strokeStyle = "black";
BuyCall.lineWidth = 2;
BuyCall.stroke();
const SellCall = canvas.getContext("2d");
SellCall.beginPath();
SellCall.moveTo(500,300);
SellCall.lineTo(700,300);
SellCall.lineTo(900,500);
SellCall.strokeStyle = "black";
SellCall.lineWidth = 2;
SellCall.stroke();
</script>
最後的結果:有按鈕BUTTON
<BUTTON ONCLICK='MY()' STYLE="BACKGROUND-COLOR:YELLOW;">說明</BUTTON><canvas id="Canvas210" width="900" height="500">
</canvas>
<script>
function MY(){
const canvas = document.getElementById("Canvas210");
const BuyPut = canvas.getContext("2d");
BuyPut.beginPath();
BuyPut.moveTo(0,0);
BuyPut.lineTo(200,200);
BuyPut.lineTo(400,200);
BuyPut.strokeStyle = "black";
BuyPut.lineWidth = 2;
BuyPut.font = "24px 標楷體";
BuyPut.fillText("買入賣權Put,認售權證",200,50);
BuyPut.stroke();
const SellPut = canvas.getContext("2d");
SellPut.beginPath();
SellPut.moveTo(0,500);
SellPut.lineTo(200,300);
SellPut.lineTo(400,300);
SellPut.strokeStyle = "black";
SellPut.lineWidth = 2;
SellPut.fillText("賣出賣權Put,認售權證",200,450);
SellPut.stroke();
const BuyCall = canvas.getContext("2d");
BuyCall.beginPath();
BuyCall.moveTo(500,200);
BuyCall.lineTo(700,200);
BuyCall.lineTo(900,0);
BuyCall.strokeStyle = "black";
BuyCall.lineWidth = 2;
BuyCall.fillText("買入買權Call,認購權證",500,50);
BuyCall.stroke();
const SellCall = canvas.getContext("2d");
SellCall.beginPath();
SellCall.moveTo(500,300);
SellCall.lineTo(700,300);
SellCall.lineTo(900,500);
SellCall.strokeStyle = "black";
SellCall.lineWidth = 2;
SellCall.fillText("賣出買權Call,認購權證",500,450);
SellCall.stroke();
}
</script>
作者已經移除這則留言。
回覆刪除https://lu-chieh-chi.blogspot.com/2024/10/20241028canvasapple.html
回覆刪除https://xie-ni.blogspot.com/2024/10/canvasapple.html
回覆刪除https://yangsinmei.blogspot.com/2024/10/canvasapple.html
回覆刪除https://h5ying.blogspot.com/2024/10/canvasapple.html
回覆刪除https://egdvcn-gh.blogspot.com/2024/10/const-canvas-document.html
回覆刪除https://laichia-jung.blogspot.com/2024/10/canvsapple_27.html
回覆刪除https://djhdvdhd.blogspot.com/2024/10/blog-post_27.html
回覆刪除https://allyking097.blogspot.com/2024/10/canvasapple.html
回覆刪除作者已經移除這則留言。
回覆刪除https://yuci0124.blogspot.com/2024/10/20241028canvas.html
回覆刪除https://wihfaw.blogspot.com/2024/10/const-canvas-document.html
回覆刪除https://hsulining9999.blogspot.com/2024/10/20241028canvas.html
回覆刪除https://d11117242.blogspot.com/2024/10/const-canvas-document.html
回覆刪除https://yuxi1202.blogspot.com/2024/10/canvasapple.html
回覆刪除https://jiang233.blogspot.com/2024/10/20241028canvas.html
回覆刪除https://yichen0617.blogspot.com/2024/10/const-canvas-document.html
回覆刪除https://wei1029.blogspot.com/2024/10/const-canvas-document.html
回覆刪除https://spy0928.blogspot.com/2024/10/20241028canvas-apple.html
回覆刪除https://chang-yam-ci.blogspot.com/2024/10/canvas-apple.html
回覆刪除https://wwersseraaer.blogspot.com/2024/10/canvasapppe.html
回覆刪除https://yezonghan.blogspot.com/2024/10/canvasapple.html
回覆刪除https://guovupvmp.blogspot.com/2024/10/const-canvas-document.html
回覆刪除https://htmlsyuan.blogspot.com/2024/10/canvas.html
回覆刪除https://lintingyang11317134.blogspot.com/2024/10/canvasapple.html
回覆刪除https://huangjunzhu.blogspot.com/2024/10/const-canvas-document.html
回覆刪除https://enxaing.blogspot.com/2024/10/20241028canvas-apple.html
回覆刪除https://htmlcss-hsiao.blogspot.com/2024/10/canvasapple.html
回覆刪除https://huangchenyang.blogspot.com/2024/10/canvasapple.html
回覆刪除https://jjjjiaying.blogspot.com/2024/10/canvasapple.html
回覆刪除https://zzy-hn.blogspot.com/2024/10/canvasapple.html
回覆刪除https://sklnfijseifjsk.blogspot.com/2024/10/canvasapple.html
回覆刪除https://yehjungwen.blogspot.com/2024/10/canvasapple.html
回覆刪除https://syx0304syx.blogspot.com/2024/10/canvasapple.html
回覆刪除https://wuzhiyou.blogspot.com/2024/10/canvasapple.html
回覆刪除https://pengyikai.blogspot.com/2024/10/function-my-const-canvas-document.html
回覆刪除https://lupeiying.blogspot.com/2024/10/canvasapple.html
回覆刪除https://chiu-wei-jie.blogspot.com/2024/10/473button.html
回覆刪除https://yangbokai.blogspot.com/2024/10/canvasapple.html
回覆刪除https://zhuo-you-wen.blogspot.com/2024/10/const-canvas-document.html
回覆刪除https://andy1015.blogspot.com/2024/10/blog-post.html
回覆刪除https://chan0528.blogspot.com/2024/10/htmlcssjavascriptpythonjava.html
回覆刪除https://acdhdwstzws.blogspot.com/2024/10/applecanvas.html
回覆刪除https://huutingyu.blogspot.com/2024/10/applecanvas.html
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://xxxjkxxthf.blogspot.com/2024/10/20241028canvas.html
回覆刪除https://zhang-1108.blogspot.com/2024/10/blog-post.html
回覆刪除https://jamie941128.blogspot.com/2024/10/httpsmumeng-ru.blogspot.com2024102024.html
回覆刪除作者已經移除這則留言。
回覆刪除https://linchengxun.blogspot.com/2024/10/canvas.htm
回覆刪除https://ting11111.blogspot.com/2024/10/h1background-colorpurple-colorwhite.html
回覆刪除https://tzuchenchu.blogspot.com/2024/10/2024.html
回覆刪除https://huuiiiiman.blogspot.com/2024/10/2024.html
回覆刪除作者已經移除這則留言。
回覆刪除https://dbdodjdk.blogspot.com/2024/10/canvas-apple.html
回覆刪除https://gbsddik.blogspot.com/2024/10/applecanvas.html
回覆刪除https://www.blogger.com/blog/post/edit/preview/5282033484822785181/2016326503808299530
回覆刪除https://yiyiiiii.blogspot.com/2024/10/canvasapple.html
回覆刪除https://kuchingyu.blogspot.com/2024/10/function-abc-const-canvas-document.html
回覆刪除作者已經移除這則留言。
回覆刪除https://yuweiiiiiiiiiiii.blogspot.com/2024/10/2024.html
回覆刪除https://ericfggf554466.blogspot.com
回覆刪除https://koala111222.blogspot.com/2024/10/applecanvas.html
回覆刪除https://chiuerya0515.blogspot.com/2024/10/2024.html
回覆刪除https://ben0409.blogspot.com/2024/10/canvasapple.html
回覆刪除https://yangyoyo0125.blogspot.com/2024/11/const-canvas-document.html
回覆刪除https://guovupvmp.blogspot.com/2024/11/blog-post.html#show210
回覆刪除https://huangchenyang.blogspot.com/2024/11/blog-post.html#show210
回覆刪除https://chen-kai01htmlshow210.blogspot.com/2024/11/function-my-const-show-document.html#show210
回覆刪除https://yuxi1202.blogspot.com/2024/11/blog-post.html#show210
回覆刪除https://sklnfijseifjsk.blogspot.com/2024/11/blog-post.html
回覆刪除https://enxaing.blogspot.com/2024/11/2.html#show210
回覆刪除https://ting100000.blogspot.com/2024/10/h1background-colorpurple-colorwhite.html#show210
回覆刪除https://ericfggf554466.blogspot.com/2024/11/blog-post.html
回覆刪除https://s98410769.blogspot.com/2024/11/d11350107.html#210
回覆刪除https://zyixnn.blogspot.com/2024/11/blog-post.html#show210
回覆刪除https://slu804387.blogspot.com/2024/11/blog-post.html#show210
回覆刪除https://www.blogger.com/blog/post/edit/preview/7142461537043228938/8536363586174289025#show210
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://pei940922.blogspot.com/2024/11/blog-post.html#show210
回覆刪除https://mumeng-ru.blogspot.com/2024/11/blog-post.html#show210
回覆刪除https://jamie941128.blogspot.com/2024/11/blog-post.html#show210
回覆刪除https://sincewayne.blogspot.com/2024/11/blog-post.html#show210
回覆刪除https://yiyiiiii.blogspot.com/2024/11/h1background-colorpurple-colorwhite.html#show210
回覆刪除https://vovo8564513.blogspot.com/2024/11/blog-post.html#show210
回覆刪除
回覆刪除https://yimignsocool.blogspot.com/2024/11/blog-post.html#show210