asp if判断语句

来源:百度知道 编辑:UC知道 时间:2024/06/02 02:52:01
<% if request("type")="" or request("type")="公司新闻" then%>
<!--#include file="news_top_1.asp" -->
<% end if %>
<% if request("type")="行业动态" then%>
<!--#include file="news_top_2.asp" -->
<% end if %>

请问这样写可以吗?

你是对的,自己试试了再问嘛

<% if request("type")="" or request("type")="公司新闻" then
<!--#include file="news_top_1.asp" -->

if request("type")="行业动态" then
<!--#include file="news_top_2.asp" -->
%>

可以这样写,虽然不太好看

完全正确 你试试不就知道了 何必跑到百度上来呢。相信自己

可以的。