NewsRhzhi
|
先创资讯
|
旧版入口
网站首页
|
NewsRhzhi
|
先创资讯
|
操作系统
|
工具软件
|
办公软件
|
网站设计
|
组网专栏
|
平面设计
|
多 媒 体
|
程序开发
|
硬件资料
|
聊天软件
您现在的位置:
先创网
>>
程序开发
>>
.NET
>> 文章正文
使用JScript.NET创建asp.net页面(七)
不详
2005-3-14文/佚名
例子2
<%@ WebService Language="JScript" class="Weather"%>
import System
import System.Web.Services
class Weather {
WebMethodAttribute function getConditions(strCity : String) : String
{
var now = new Date();
switch (strCity.toUpperCase())
{
case "LONDON":
if (now.getMonth() <= 7||now.getMonth() >=9)
{
return "overcast"
}
if
{
return "partly overcast"
}
break;
case "SEATTLE":
if (now.getMonth() == 7 && now.getDay()==4)
{
return "torrential rain"
}
else
{
return "rain"
}
break;
case "LA":
return "smoggy"
break;
case "PHOENIX":
return "damn hot"
break;
default:
return "partly cloudy with a chance of showers"
}
}
}
打印此页
投稿与建议
返回顶部
栏 目 索 引
软件应用
SOFTWARE
Win XP
|
NT/2003
Win2000
|
DOS/Win9x
PowerPoint
|
Office
Excel
|
Word
网络软件
|
实用软件
媒体软件
|
系统软件
常用软件
|
办公软件
聊天软件
|
网络安全
新软试用
|
Vista
设计在线
DESIGN
Dreamweaver
|
3DMax
Photoshop
|
Flash
平面设计
|
网页设计
多 媒 体
|
精品画廊
精彩专区
SPECIAL
Q Q 专区
|
热门专题
组网玩网
|
程序开发
应用集锦
|
没有任何图片文章
相关文章
黑客揭密ASP.net服务器的入侵
基于asp.net的webmenu的数据
基于asp.net的webmenu的数据
基于asp.net的webmenu的数据
基于asp.net的webmenu的数据
基于asp.net的webmenu的数据
用Asp.net实现基于XML的留言
用Asp.net实现基于XML的留言
用Asp.net实现基于XML的留言
用Asp.net实现基于XML的留言
关于我们 -
联系方式
- 合作伙伴 - 网站大事记 - 网站地图 -
我要投稿
Copyright ©1997-2008 先创网 All Rights Reserved.
先创科技
版权所有