?? vc常用數(shù)據(jù)類型使用轉(zhuǎn)換詳解.htm
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0068)http://hi.baidu.com/superdbs/blog/item/18500ef499893e6fddc474cd.html -->
<!--STATUS OK--><HTML><HEAD><TITLE>VC常用數(shù)據(jù)類型使用轉(zhuǎn)換詳解[轉(zhuǎn)]_懷著一份美好的心情來(lái)期待明天</TITLE>
<META http-equiv=content-type content="text/html; charset=gb2312">
<STYLE>.error {
FONT-SIZE: 12px; COLOR: #ff0000
}
</STYLE>
<SCRIPT language=javascript src="VC常用數(shù)據(jù)類型使用轉(zhuǎn)換詳解.files/popup.js"></SCRIPT>
<SCRIPT language=JavaScript src="VC常用數(shù)據(jù)類型使用轉(zhuǎn)換詳解.files/g_spjs.js"></SCRIPT>
<SCRIPT language=javascript>
<!--
var allkey="";
var i=0;
var flag=0;
function setpv(allnum)
{
var num = allnum.split('_');
document.getElementById("result").innerHTML=num[0];
}
function checkMail(s)
{
var pattern=/\w+@\w+\.[a-z]+/;
if(pattern.test(s))
{
return true;
}
else
{
return false;
}
}
function checkeandu(eanduid)
{
var eanduvalue=G(eanduid).value;
var len=bytes(eanduvalue);
if(len>128)
{
showErr(2,"您輸入的網(wǎng)址或郵箱太長(zhǎng),請(qǐng)保持在128字節(jié)以內(nèi)。");
return false;
}
else
{
return true;
}
}
function cmtdel(str)
{
var pop=new Popup({ contentType:3,isReloadOnClose:false,width:340,height:80});
pop.setContent("title","刪除評(píng)論");
pop.setContent("confirmCon","您確定要徹底刪除這條評(píng)論嗎?");
pop.setContent("callBack",delCallback2);
pop.setContent("parameter",{fid:str,popup:pop});
pop.build();
pop.show();
return false;
}
function delCallback2(para)
{
var o_pop=para["popup"];
o_pop.config.contentType=1;
o_pop.setContent("contentUrl","");
o_pop.reBuild();
G(para["fid"]).target=o_pop.iframeIdName;
eval("document."+para["fid"]).submit();
}
function checkname(strid)
{
var ele=document.getElementById(strid);
var len=bytes(ele.value);
if(len>49)
{
showErr(1,"您輸入的姓名太長(zhǎng),請(qǐng)保持在49字節(jié)以內(nèi)。");
return false;
}
else
{
if(len==0)
{
document.getElementById(strid).value="匿名網(wǎng)友";
}
return true;
}
function checktext(textid)
{
document.getElementById(textid).value=trimlr(textid);
var str=trimrn(textid);
len=str.length;
if(len==0 || ((/^[\s, ]+$/gi).test(str)) )
{
showErr(3,"您必須輸入評(píng)論內(nèi)容,請(qǐng)檢查。");
return false;
}
else
{
if(len>1000)
{
showErr(3,"您輸入的評(píng)論內(nèi)容太長(zhǎng),請(qǐng)保持在500字以內(nèi)。");
return false;
}
return true;
}
}
function showErr(index,str)
{
G(index+"_err").style.display="";
G(index+"_err_con").innerHTML=str;
}
function hidErr(index)
{
G(index+"_err").style.display="none";
G(index+"_err_con").innerHTML="";
}
function alertPop(tit,con)
{
var pop=new Popup({ contentType:4,isReloadOnClose:false,width:340,height:80});
pop.setContent("title",tit);
pop.setContent("alertCon",con);
pop.build();
pop.show();
}
function cmtfull()
{
var cnum=0;
if(cnum>=50000)
{
alertPop("發(fā)表評(píng)論","單篇日志評(píng)論數(shù)最多為50000條.");
return false;
}
else
{
return true;
}
}
function checkcmtform()
{
if(checkname("spBlogCmtor")&&checkeandu("spBlogCmtURL")&&checktext("spBlogCmtText")&&cmtfull())
{
submitForm();
return true;
}
else
{
return false;
}
}
var g_pop=null;
function submitForm()
{
g_pop=new Popup({ contentType:1,isReloadOnClose:false,width:340,height:80});
g_pop.setContent("title","添加評(píng)論");
g_pop.setContent("contentUrl","");
g_pop.build();
G("popFormSubmit").target=g_pop.iframeIdName;
g_pop.show();
}
function g_close_pop()
{
g_pop.close();
}
function formatonlinpic()
{
formatverkey();
var picobj=document.getElementsByName("onlinepic");
var picnum=picobj.length;
for(var i=0;i<picnum;i++)
{
if(picobj[i].width>200)
{
picobj[i].width=200;
}
if(picobj[i].height>200)
{
picobj[i].height=200;
}
}
}
function formatverkey()
{
if(document.getElementById("vercode"))
{
if(document.getElementById("spBlogCmtText").value=="")
{
document.getElementById("vercode").style.display="none";
}
}
}
function showverkey()
if(document.getElementById("vercode"))
{
document.getElementById("vercode").style.display="";
}
}
//-->
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -