📄 在linux中实现内部进程通信 - 开发者 - zdnet china.htm
字号:
//去头
for (k=0;k<str_len;k++)
{
//去头
thestr_head_temp=thestr_head.substring(k,k+1);
//alert(thestr_head_temp)
if (alert_str.indexOf(thestr_head_temp) !=-1)
{
//alert("zhao dao le")
thestr_head_noalert=thestr_head.substr(k+1)
continue;
//alert(thestr_head)
}
else
{
break;
}
}
//去尾
thestr_end=thestr_head_noalert
thestr_end_noalert=thestr_head_noalert
str_nohead_len=thestr_end.length
//alert(str_nohead_len)
for (m=str_nohead_len;m>0;m--)
{
//去尾
thestr_end_temp=thestr_end.substring(m,m-1);
//alert(thestr_end_temp)
if (alert_str.indexOf(thestr_end_temp) !=-1)
{
//alert("zhao dao le")
thestr_end_noalert=thestr_end.substring(0,m-1)
//alert(thestr_end)
continue;
}
else
{
break;
}
}
//alert(thestr_end_noalert)
//检查中间
thestr_mid=thestr_end_noalert
//替换掉中间空格 /\s/g 增则表达式 空格 汉字空格
//re=/\s/g
//thestr_mid_nospace=thestr_mid.replace(re,"A")
thestr_mid_nospace=thestr_mid
//检查中间的除掉空格的特殊字符
thstr_nospace_len=thestr_mid_nospace.length
alert_str_nospace="#[]{}&,";
for (x=0;x<thstr_nospace_len;x++)
{
//着字符检查
thestr_mid_nospace_temp=thestr_mid_nospace.substring(x,x+1);
//alert(thestr_head_temp)
if (alert_str_nospace.indexOf(thestr_mid_nospace_temp) !=-1)
{
//alert("zhao dao le")
alert("关键词不允许出现下列字符:"+alert_str_nospace)
//aform.elements (j).focus();
return false;
}
}
//alert(thestr_mid)
document.form1.searchstring.value=thestr_mid
//alert(aform.elements (j).value)
//return 1
//return 1;
return true;
}
-->
</SCRIPT>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD align=middle bgColor=#efefef><IMG height=16
src="在Linux中实现内部进程通信 - 开发者 - ZDNet China.files/search.gif"
width=160> </TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#efefef>
<FORM action=/search/index.htm id=form1 method=post
name=form1><SPAN class=text1><INPUT id=searchstring
name=query size=18 width="54"> <SELECT id=searchclass
name=collection> <OPTION selected value=zdnetall>All
ZDNet</OPTION> <OPTION value=news>新闻</OPTION> <OPTION
value=biztech>商务</OPTION> <OPTION
value=techupdate>技术</OPTION> <OPTION
value=developer>开发</OPTION> <OPTION
value=products>产品</OPTION> <OPTION
value=download>下载</OPTION> <OPTION
value=gamespot>游戏</OPTION></SELECT><INPUT id=Submit1 name=Submit1 type=submit value=搜索></SPAN>
</FORM></TD></TR></TBODY></TABLE><!--end search --><!--start powercenter -->
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=160>
<TBODY>
<TR>
<TD width=148><A
href="http://www.zdnet.com.cn/smb/resource/#"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image2','','/smb/powercenter/powercenter_text_01.gif',1)"><IMG
border=0 height=46 name=Image2 src="" width=148></A></TD>
<TD rowSpan=4 vAlign=top width=12><IMG height=182
src="在Linux中实现内部进程通信 - 开发者 - ZDNet China.files/powercenter_logo_02.gif"
width=12></TD></TR>
<TR>
<TD><A
href="http://ad.doubleclick.net/clk;7384475;4278159;z?http://www.zdnet.com.cn/biztech/iebc/"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image3','','/smb/powercenter/powercenter_text_03.gif',1)"><IMG
border=0 height=44 name=Image3 src=""
width=148></A></TD></TR>
<TR>
<TD><A
href="http://ad.doubleclick.net/clk;9435233;5041947;k?http://zdnet.com.cn/biztech/powercenter/ibm/index.htm"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image4','','/smb/powercenter/powercenter_text_04.gif',1)"><IMG
border=0 height=43 name=Image4 src=""
width=148></A></TD></TR>
<TR>
<TD><A
href="http://ad.doubleclick.net/clk;7799095;5041207;q?http://zdnet.com.cn/ilog"
onmouseout=MM_swapImgRestore()
onmouseover="MM_swapImage('Image5','','/smb/powercenter/powercenter_text_05.gif',1)"><IMG
border=0 height=49 name=Image5
src="在Linux中实现内部进程通信 - 开发者 - ZDNet China.files/powercenter_logo_05.gif"
width=148></A></TD></TR></TBODY></TABLE><!--end powercenter--><!--start writer -->
<TABLE bgColor=#fafafc border=0 cellPadding=0 cellSpacing=0
width=160>
<TBODY>
<TR>
<TD><IMG height=16
src="在Linux中实现内部进程通信 - 开发者 - ZDNet China.files/writer.gif"
width=160></TD></TR>
<TR>
<TD align=right
background="在Linux中实现内部进程通信 - 开发者 - ZDNet China.files/rightbg.gif"
vAlign=top>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=159>
<TBODY>
<TR>
<TD align=middle bgColor=#fafafc>
<DIV align=center>
<TABLE border=0 width="100%">
<TBODY>
<TR>
<TD width="50%">
<DIV align=center><A
href="http://www.zdnet.com.cn/developer/keywords/huanglin"
target=_blank><SPAN
class=text1>黄林</SPAN></A></DIV></TD>
<TD width="50%"><!-- <div align="center"><a href="/developer/keywords/green" target="_blank"><span class="text1">付谦</span></a></div>--></TD></TR>
<TR>
<TD width="50%">
<DIV align=center><A
href="http://www.zdnet.com.cn/developer/keywords/huangzhen"
target=_blank><SPAN
class=text1>黄振宇</SPAN></A></DIV></TD>
<TD width="50%">
<DIV align=center><A
href="http://www.zdnet.com.cn/developer/keywords/green"
target=_blank><SPAN
class=text1>付谦</SPAN></A></DIV></TD></TR>
<TR>
<TD width="50%">
<DIV align=center><A
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -