需求: 单击页面上的按钮,调用函数。 代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>编写一个带两个变量和一个运算符的四则运算函数</title> </head>