修复: 将原来的 = 号修改成 ,否则没有事件去激活JS计算方法:
原文网址:http://www.w3school.com.cn/tiy/t.asp?f=html5_form_output
使用 output 元素的简易计算器: