在我用Js些服务器端程序时,请问,用tt=Request.QueryString("mattype")得到的传世什么类型的?为什么tt.typeOf()、tt.split("-") 都不对?在客户端时,都可以,why?还有,Request.QueryString("mattype") 的属性 item 、key 是干什么的?
---------------------------------------------------------------
typeof(tt)
---------------------------------------------------------------
Request.QueryString("fasfasfa").Item得到的是 string类型
应该是
var tt = Request.QueryString("fasfasfa").Item
if (typeof(tt) ==null ¦ ¦ tt =="")
{
xxxxxxxx
}
Item就是值 key就是元素名称,如text1,select1等
---------------------------------------------------------------
typeof都会出错,晕,你该不会是用二进制传输模式吧。
---------------------------------------------------------------
^_^
是俺嘞