ASP一个数字相回问题?
<% if sum_money(1)>Limit then
response.write Limit
else
sum_money(1)
end if
%>
<%
if sum_money(2)>Limit then
response.write Limit
else
sum_money(2)
end if
%>
两个数字.出来的结果.要加在起一.要如何写啊... 这要设置变量吧
你那1,2 那些要有个变量代替 不明白楼主什么意思。。。 <%@language="JScript"%>
<%
var a,b,c;
var Limit = ***;
a = (sum_money(1)>Limit) ? Limit :sum_money(1);
b = (sum_money(2)>Limit) ? Limit :sum_money(2);
Response.Write(a+"<br />"+b+"<br />"+(a+b));
%>
难道是这样? 下面是引用xchange于2005-10-30 10:16发表的:
<%@language="JScript"%>
<%
var a,b,c;
var Limit = ***;
a = (sum_money(1)>Limit) ? Limit :sum_money(1);
.......
lz试试就知道了 下面是引用xchange于2005-10-30 10:16发表的:
<%@language="JScript"%>
<%
var a,b,c;
var Limit = ***;
a = (sum_money(1)>Limit) ? Limit :sum_money(1);
.......
不行.出错了...
Microsoft VBScript 编译器错误 错误 '800a0401'
语句未结束
/v2ksy/Index_submain.asp,行 1174
var a,b,c;
---------^ <%
if sum_money(1)>Limit then
response.write Limit
else
sum_money(1)
end if
%>
<%
if sum_money(2)>Limit then
response.write Limit
else
sum_money(2)
end if
%>
<%
if sum_money(3)>Limit then
response.write Limit
else
sum_money(3)
end if
%>
<%
if sum_money(4)>Limit then
response.write Limit
else
sum_money(4)
end if
%>
sum_money(1)是1到100组每组的数指也不一样,Limit是一个指定数指.
现要把这一百组的数全加起来... 如何判断
A= 下面的函数的指...后再A+B+C+D+E按说就可以完成了
if sum_money(1)>Limit then
response.write Limit
else
sum_money(1)
end if <?php
$i asdkjf
asdkfjas
#$Ii+
?>
不知道怎么写 5555555555
ASP一个数字相回问题?
<% if sum_money(1)>Limit then
response.write Limit
else
sum_money(1)
end if
%>
<%
if sum_money(2)>Limit then
response.write Limit
else
sum_money(2)
end if
%>
两个数字.出来的结果.要加在起一.要如何写啊...
页:
[1]