javascript怎么定义函数1:调用关键字function来构造function distance(x1,x2,y1,y2){var dx=x2-x1var dy=y2-y1return Math.sqrt(dx*dx+dy*dy)}2:使用Function()构造函2023-04-15JavaScript170