⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 用javascript判断日期、数字、整数和特殊字符 - 东猫北熊的技术积累 - 博客园.mht

📁 asp.net ,javascript 常用的字符操作函数
💻 MHT
📖 第 1 页 / 共 5 页
字号:
      style=3D"COLOR: #000000">&gt;</SPAN><SPAN=20
      style=3D"COLOR: #000000"><BR></SPAN></DIV></DIV>
      <P class=3Dpostfoot>posted on 2007-10-17 16:38 <A=20
      =
href=3D"http://www.cnblogs.com/siye1982/">=E4=B8=9C=E7=8C=AB=E5=8C=97=E7=86=
=8A</A> =E9=98=85=E8=AF=BB(221) <A=20
      =
href=3D"http://www.cnblogs.com/siye1982/archive/2007/10/17/927785.html#Po=
st">=E8=AF=84=E8=AE=BA(0)</A>=20
      &nbsp;<A=20
      =
href=3D"http://www.cnblogs.com/siye1982/admin/EditPosts.aspx?postid=3D927=
785">=E7=BC=96=E8=BE=91</A>=20
      <A=20
      =
href=3D"http://www.cnblogs.com/siye1982/AddToFavorite.aspx?id=3D927785">=E6=
=94=B6=E8=97=8F</A>=20
      =E6=89=80=E5=B1=9E=E5=88=86=E7=B1=BB: <A=20
      =
href=3D"http://www.cnblogs.com/siye1982/category/109549.html">Javascript=E7=
=9B=B8=E5=85=B3=E7=A7=AF=E7=B4=AF</A>=20
      </P></DIV><IMG height=3D1=20
      =
src=3D"http://www.cnblogs.com/siye1982/aggbug/927785.html?type=3D1&amp;we=
bview=3D1"=20
      width=3D1> <!--
<rdf:RDF xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc=3D"http://purl.org/dc/elements/1.1/"=0A=
xmlns:trackback=3D"http://madskills.com/public/xml/rss/module/trackback/"=
>
<rdf:Description
rdf:about=3D"http://www.cnblogs.com/siye1982/archive/2007/10/17/927785.ht=
ml"
dc:identifier=3D"http://www.cnblogs.com/siye1982/archive/2007/10/17/92778=
5.html"
dc:title=3D"=E7=94=A8JavaScript=E5=88=A4=E6=96=AD=E6=97=A5=E6=9C=9F=E3=80=
=81=E6=95=B0=E5=AD=97=E3=80=81=E6=95=B4=E6=95=B0=E5=92=8C=E7=89=B9=E6=AE=8A=
=E5=AD=97=E7=AC=A6"
trackback:ping=3D"http://www.cnblogs.com/siye1982/services/trackbacks/927=
785.aspx" />
</rdf:RDF>
-->
      <DIV id=3DAjaxHolder_UpdatePanel1>
      <STYLE>TD {
	FONT-SIZE: 12px
}
.commentTextBox {
	FONT-SIZE: 13px; FONT-FAMILY: Verdana
}
A.blue:visited {
	COLOR: blue
}
A.blue:active {
	COLOR: blue
}
A.blue:link {
	COLOR: blue
}
A.blue:hover {
	COLOR: blue
}
</STYLE>
<!--Beging Temp Save-->
      <STYLE>.userData {
	BEHAVIOR: url(#default#userdata)
}
</STYLE>

      <DIV class=3DuserData id=3DCommentsPersistDiv></DIV>
      <SCRIPT type=3Dtext/javascript>
function pageLoad()
{
    =
Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(handl=
eInitializeRequest);
    =
//Sys.WebForms.PageRequestManager.getInstance().add_endRequest(handleEndR=
equest);
}

function handleInitializeRequest(sender, args)
{
    var prm =3D Sys.WebForms.PageRequestManager.getInstance();
    var eid =3D args.get_postBackElement().id;
    /*if (eid.indexOf("DeleteLink")>0)=20
    {
       args.get_postBackElement().innerHTML =3D "<font =
color=3D'red'>=E6=AD=A3=E5=9C=A8=E5=88=A0=E9=99=A4...</font>";        =20
    }   =20
    else */
    if (eid.indexOf("btnSubmit")>0)=20
    {
       =
document.getElementById("AjaxHolder_PostComment_ltSubmitMsg").innerHTML=3D=
"=E6=AD=A3=E5=9C=A8=E6=8F=90=E4=BA=A4...";
       =
document.getElementById("AjaxHolder_PostComment_btnSubmit").disabled =3D =
true;      =20
    }  =20
    else if(eid.indexOf("refreshList")>0)
    {
        =
document.getElementById("AjaxHolder_PostComment_refreshList").innerHTML=3D=
"<font color=3D'red'>=E6=AD=A3=E5=9C=A8=E5=88=B7=E6=96=B0...</font>";
    }
  =20
}=09

function TempSave(ElementID)
{
	try
	{
	=
CommentsPersistDiv.setAttribute("CommentContent",document.getElementById(=
ElementID).value);
	CommentsPersistDiv.save("CommentXMLStore");
	}
	catch(ex)
	{
	}
=09
}
function Restore(ElementID)
{
	CommentsPersistDiv.load("CommentXMLStore");
	=
document.getElementById(ElementID).value=3DCommentsPersistDiv.getAttribut=
e("CommentContent");
}=09
		=09
		=09
</SCRIPT>
<!--Ene TempSave-->
      <DIV id=3DdivRefreshComments=20
      style=3D"FONT-SIZE: 12px; MARGIN-BOTTOM: 5px; MARGIN-RIGHT: 10px; =
TEXT-ALIGN: right"><A=20
      =
href=3D"http://space.cnblogs.com/">=E7=A4=BE=E5=8C=BA</A>&nbsp;&nbsp;<A=20
      =
href=3D"http://news.cnblogs.com/">=E6=96=B0=E9=97=BB</A>&nbsp;&nbsp;<A=20
      =
href=3D"http://www.cnblogs.com/RequireRegister.aspx">=E6=96=B0=E7=94=A8=E6=
=88=B7=E6=B3=A8=E5=86=8C</A>&nbsp;&nbsp;<A=20
      id=3DAjaxHolder_PostComment_refreshList=20
      =
href=3D"javascript:__doPostBack('AjaxHolder$PostComment$refreshList','')"=
>=E5=88=B7=E6=96=B0=E8=AF=84=E8=AE=BA=E5=88=97=E8=A1=A8</A>&nbsp;&nbsp;</=
DIV>
      <DIV class=3Dcommentform><SPAN =
id=3DAjaxHolder_PostComment_ltSubmitMsg=20
      style=3D"COLOR: red"></SPAN><BR><A name=3DFeedback></A>
      <TABLE cellSpacing=3D1 cellPadding=3D1 border=3D0>
        <TBODY>
        <TR>
          <TD width=3D75></TD>
          <TD></TD>
          <TD></TD></TR>
        <TR>
          <TD width=3D55>=E6=A0=87=E9=A2=98</TD>
          <TD><INPUT class=3Dcommenttb =
id=3DAjaxHolder_PostComment_tbTitle=20
            value=3D"re: =
=E7=94=A8JavaScript=E5=88=A4=E6=96=AD=E6=97=A5=E6=9C=9F=E3=80=81=E6=95=B0=
=E5=AD=97=E3=80=81=E6=95=B4=E6=95=B0=E5=92=8C=E7=89=B9=E6=AE=8A=E5=AD=97=E7=
=AC=A6"=20
            name=3DAjaxHolder$PostComment$tbTitle></TD>
          <TD><SPAN id=3DAjaxHolder_PostComment_RequiredFieldValidator1=20
            style=3D"VISIBILITY: hidden; COLOR: =
red">=E8=AF=B7=E8=BE=93=E5=85=A5=E6=A0=87=E9=A2=98</SPAN></TD></TR>
        <TR>
          <TD>=E5=A7=93=E5=90=8D</TD>
          <TD><INPUT class=3Dcommenttb =
id=3DAjaxHolder_PostComment_tbName=20
            name=3DAjaxHolder$PostComment$tbName></TD>
          <TD><SPAN id=3DAjaxHolder_PostComment_RequiredFieldValidator2=20
            style=3D"VISIBILITY: hidden; COLOR: =
red">=E8=AF=B7=E8=BE=93=E5=85=A5=E4=BD=A0=E7=9A=84=E5=A7=93=E5=90=8D</SPA=
N></TD></TR>
        <TR>
          <TD>=E4=B8=BB=E9=A1=B5</TD>
          <TD><INPUT class=3Dcommenttb id=3DAjaxHolder_PostComment_tbUrl =

            name=3DAjaxHolder$PostComment$tbUrl></TD>
          <TD><FONT face=3D=E5=AE=8B=E4=BD=93></FONT></TD></TR>
        <TR id=3DAjaxHolder_PostComment_trEmail>
          <TD>Email</TD>
          <TD><INPUT class=3Dcommenttb =
id=3DAjaxHolder_PostComment_tbEmail=20
            =
name=3DAjaxHolder$PostComment$tbEmail>(=E5=8F=AA=E6=9C=89=E5=8D=9A=E4=B8=BB=
=E6=89=8D=E8=83=BD=E7=9C=8B=E5=88=B0)<SPAN=20
            id=3DAjaxHolder_PostComment_revContactMail=20
            style=3D"VISIBILITY: hidden; COLOR: =
red">=E9=82=AE=E4=BB=B6=E5=9C=B0=E5=9D=80=E6=97=A0=E6=95=88</SPAN></TD>
          <TD></TD></TR>
        <TR>
          <TD align=3Dleft colSpan=3D3>
            <TABLE class=3DCommentForm =
id=3DAjaxHolder_PostComment_tbCaptchaImage=20
            cellSpacing=3D0 cellPadding=3D0 border=3D0>
              <TBODY>
              <TR>
                <TD colSpan=3D3><SPAN=20
                  id=3DAjaxHolder_PostComment_Requiredfieldvalidator4=20
                  style=3D"DISPLAY: none; COLOR: =
red">=E8=AF=B7=E8=BE=93=E5=85=A5=E9=AA=8C=E8=AF=81=E7=A0=81</SPAN> <SPAN =

                  id=3DAjaxHolder_PostComment_lblImage=20
                  style=3D"FONT-WEIGHT: bold; COLOR: =
red"></SPAN></TD></TR>
              <TR>
                <TD width=3D78>=E9=AA=8C=E8=AF=81=E7=A0=81</TD>
                <TD><INPUT id=3DAjaxHolder_PostComment_CodeNumberTextBox =

                  =
name=3DAjaxHolder$PostComment$CodeNumberTextBox>*&nbsp;&nbsp;<IMG=20
                  =
src=3D"http://www.cnblogs.com/Modules/CaptchaImage/JpegImage.aspx?cacheid=
=3D20080826170812"><A=20
                  id=3DAjaxHolder_PostComment_lkbChangeCode=20
                  =
href=3D"javascript:__doPostBack('AjaxHolder$PostComment$lkbChangeCode',''=
)">=E7=9C=8B=E4=B8=8D=E6=B8=85,=E6=8D=A2=E4=B8=80=E5=BC=A0</A>=20
                  [<A =
href=3D"http://www.cnblogs.com/login.aspx">=E7=99=BB=E5=BD=95</A>][<A=20
                  =
href=3D"http://www.cnblogs.com/RequireRegister.aspx">=E6=B3=A8=E5=86=8C</=
A>]</TD>
                <TD align=3Dleft></TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD =
colSpan=3D3>=E5=86=85=E5=AE=B9(=E8=AF=B7=E4=B8=8D=E8=A6=81=E5=8F=91=E8=A1=
=A8=E4=BB=BB=E4=BD=95=E4=B8=8E=E6=94=BF=E6=B2=BB=E7=9B=B8=E5=85=B3=E7=9A=84=
=E5=86=85=E5=AE=B9) <SPAN=20
            id=3DAjaxHolder_PostComment_RequiredFieldValidator3=20
            style=3D"VISIBILITY: hidden; COLOR: =
red">=E8=AF=B7=E8=BE=93=E5=85=A5=E8=AF=84=E8=AE=BA=E5=86=85=E5=AE=B9</SPA=
N><BR><TEXTAREA class=3DcommentTextBox =
id=3DAjaxHolder_PostComment_tbComment =
onkeydown=3D"ctlent(event,'AjaxHolder_PostComment_tbComment')" =
name=3DAjaxHolder$PostComment$tbComment></TEXTAREA></TD></TR>
        <TR>
          <TD colSpan=3D3><SPAN id=3DAjaxHolder_PostComment_Message=20
            style=3D"COLOR: red"></SPAN></TD>
        <TR>
          <TD colSpan=3D3><INPUT id=3DAjaxHolder_PostComment_chkRemember =

            tabIndex=3D-1 type=3Dcheckbox CHECKED=20
            name=3DAjaxHolder$PostComment$chkRemember><LABEL=20
            for=3DAjaxHolder_PostComment_chkRemember>Remember =
Me?</LABEL></TD></TR>
        <TR>
          <TD height=3D23><INPUT class=3DcommentButton =
id=3DAjaxHolder_PostComment_btnSubmit =
onclick=3D"TempSave('AjaxHolder_PostComment_tbComment');WebForm_DoPostBac=
kWithOptions(new =
WebForm_PostBackOptions(&quot;AjaxHolder$PostComment$btnSubmit&quot;, =
&quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" =
type=3Dsubmit value=3D=E6=8F=90=E4=BA=A4 =
name=3DAjaxHolde

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -