劉任昌Javascript與Python比較
CSS也可以in-line
以上javascript與html與css程式碼
<STYLE>BUTTON{COLOR:WHITE;BORDER-RADIUS:20PX;}H1{COLOR:WHITE;BACKGROUND-COLOR:BLACK;TEXT-ALIGN:CENTER;PADDING:5PX;}</STYLE><button onclick="ABC()">全球市場價值最大的銀行</button>
<button onclick="XYZ()">按鈕PUSH增加</button>
<button onclick="kill()">按鈕POP執行自訂函數kill</button>
<button onclick="kill_SHOW()">按鈕POP執行kill呼叫其他函數</button>
<P id="SHOW" style="BACKGROUND-COLOR:PINK; FONT-SIZE:24PX;"></P>
CSS也可以in-line
<script>
banks=['摩根大通','美國銀行','中國工商銀行','富國銀行','匯豐銀行','巴黎銀行'];
function ABC() {
let x = '';//定義字串x內容空白
for (let i in banks)//javascript for loop () python不需要
{ x += banks[i] + '<BR>';} //x後面加上banks[0]....<>
document.getElementById('SHOW').innerHTML = x;}
function XYZ(){
banks.push('三菱銀行') //加入push
let x = '';//定義字串x內容空白
let n = banks.length; //n儲存banks串列list的長度length
for (let i=0; i < n; i++)//javascript for loop () python不需要
{ x += banks[i] + '<BR>';} //x後面加上banks[0]....<>
document.getElementById('SHOW').innerHTML = x;
}
function kill(){banks.pop();}
function kill_SHOW(){banks.pop(); ABC();}
</script>
https://lin-yujing.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://chenyenhsun.blogspot.com/2025/03/javascriptpython.html
回覆刪除追求完美的執行https://chenyenhsun.blogspot.com/2025/03/javascriptpython.html
刪除我後來訂正,陳Angle brsces.https://chenyenhsun.blogspot.com/2025/03/pythonlistarraytuplesetdict.html
304.https://chenyenhsun.blogspot.com/2025/03/pythonarraylist.html
學習就該如此,追求完美。https://chenyenhsun.blogspot.com/2025/02/chatgpt.html
https://gbsddik.blogspot.com/2025/03/javascriptpython.html
回覆刪除325在程式碼前後放PRE才可以定位顯示.https://gbsddik.blogspot.com/2025/03/idejupyterpython.html
刪除318順利執行.https://gbsddik.blogspot.com/2025/03/javascriptpython.html
311.考慮將顯示的「銀行」放在邊界之外. https://gbsddik.blogspot.com/2025/03/pythonlistarraytuplesetdict.html
304. COLAB. https://gbsddik.blogspot.com/2025/03/python.html
225. COLAB產生計算機.https://gbsddik.blogspot.com/2025/02/chat-gpt.html
https://danny0976790127.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://huuiiiiman.blogspot.com/2025/03/pythonlistarraytuplesetdict_17.html
回覆刪除https://sccabout.blogspot.com/2025/03/buttononclick-button-push-banks.html
回覆刪除作者已經移除這則留言。
回覆刪除https://www.blogger.com/blog/post/edit/981001002818914226/1140676035577866872
回覆刪除https://zhou-wei-ling.blogspot.com/2025/03/javasciptpython.html
回覆刪除https://zhang-1108.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://huutingyu.blogspot.com/2025/03/buttongreenpinkborder.html
回覆刪除https://tzuchenchu.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://winnielee0311.blogspot.com/2025/03/javascriptpython.html
回覆刪除ttps://yangyami.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://chiuerya0515.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://xu-bing-wei-0804.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://acdhdwstzws.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://zyixnn.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://christina-lqw.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://chinenkohana.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://zhuo-1005.blogspot.com/2025/03/button-push-pop-cssin-line-banks.html
回覆刪除https://nanaminagano.blogspot.com/2025/03/528javascriptpython.html
回覆刪除https://mumeng-ru.blogspot.com/2025/03/javasciptpython.html
回覆刪除https://xuan-ang.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://pei940922.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://takuto20050803.blogspot.com/2025/03/javascriptpython.html
回覆刪除作者已經移除這則留言。
回覆刪除https://takming123.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://yuweiiiiiiiiiiii.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://www.blogger.com/blog/post/edit/5412644157023439884/8087719984854359688
回覆刪除https://vovo8564513.blogspot.com/2025/03/button-push-pop-cssin-line-banks.html
回覆刪除https://d11117315111.blogspot.com/2025/03/javascriptpython.html
回覆刪除https://chan0528.blogspot.com/2025/04/javascriptpython.html
回覆刪除https://yangyoyo0125.blogspot.com/2025/04/javascriptpython_64.html
回覆刪除https://d11117242.blogspot.com/2025/04/javascriptpython_20.html
回覆刪除