我有一个vbscript脚本的问题

来源:百度知道 编辑:UC知道 时间:2024/06/16 22:41:04
<script language="vbscript">
dim x,y
x=inputbox("请输入x的值:")
if not isnumeric(x) then
msgbox("输入错误,请输入数字!")
elseif x>0 then y=x
elseif x<0 then y=-x
else y=0
end if
response.write x&"的绝对值为:"&y
</script>

<script language="vbscript">
dim x,y
x=inputbox("请输入x的值:")
if not isnumeric(x) then
msgbox("输入错误,请输入数字!")
elseif x>0 then
y=x
elseif x<0 then
y=-x
else
y=0
end if
response.write x&"的绝对值为:"&y
</script>