2个小问题
问题一:
function sendsms()
{
document.register.submit()
var http = new ActiveXObject("Microsoft.XMLHTTP");
http.open("GET","http://...../..../.........php?destMobile="+document.register.mobilecode.value+"&content="+document.register.textarea.value,false);
http.send();
}
如果象上面那样写?执行完 document.register.submit();后
var http = new ActiveXObject("Microsoft.XMLHTTP");
http.open("GET","http://...../..../.........php?destMobile="+document.register.mobilecode.value+"&content="+document.register.textarea.value,false);
http.send();
会不会不执行呢
问题二
http://community.csdn.net/Expert/topic/3962/3962043.xml?temp=.4524195
我输入时日期是字符型,就象 "2005-03-07"
我想把它边成日期型的 2005-3-7(条件是不但要是日期型,还要没有0)
我代码这么写的
idayfrom是从上一个页面传来的"2005-03-07"
idayfrom=request("idayfrom")
str1=formatdatetime(idayfrom,2)
msgbox str1
错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: 'formatdatetime'
/JOB/sendSMS.asp, 第 72 行
我又用了cdate也没有用,还是出错
idayfrom=request("idayfrom")
str1=formatdatetime(cdate(idayfrom),2)
msgbox str1