onchange event練習
from pyodide import create_proxy
def _changeg(*args, **kwargs):
input_value = document.getElementById("input").value
document.getElementById("target").innerText = input_value
def click_event(*ags, **kwgs):
input_value = document.getElementById("input").value
document.getElementById("target").innerText = input_value
chg = create_proxy(_changeg)
document.getElementById("input").addEventListener("change", chg)
輸入文字後按Enter或是點擊按鈕都可
def on_click(evt):
click_event()
更改文字P標籤