编写一个函数Min(x,y),求出x,y这两个数中的最小值,要求x、y的值由用户通过提示对话框输入。
var s=prompt("请输入X,Y") var x=s.split(',')[0]; var y=s.split(',')[1] alert(x>y?x:y)