onchange事件用于檢測(cè)值的變化梅誓。根據(jù)變化執(zhí)行指定的腳本佛南。支持onchange事件的html標(biāo)簽有:input type=“text” &select&textarea。