天天看點

openOffice安裝及服務啟動

?

?

openOffice瀹?瑁??????″????/h3>

??绫夥??openOffice2012-04-05 20:22?220浜洪??璇宦?璇?璁?1)??惰???涓炬??

涓???瀹?瑁?openOffice

1.浣跨??ar -xzvf OOo_3.2.0_LinuxIntel_install_wJRE_en-US.tar.gz瑙e??缂╁??锛?浼?寰???OO320_m12_native_packed-1_en-US.9483

??褰???

2.杩???OO320_m12_native_packed-1_en-US.9483??褰?锛???cd OOO320_m12_native_packed-1_en-US.9483

3.杩??ュ??PMS??褰?:??cd RPMS

4.?ц???rpm ??ivh *rpm锛?瀹?瑁?????rpm??浠訛?

5.杩??ュ??esktop-integration??褰???cd desktop-integration

6.?ц???rpm -ivh openoffice.org3.2-redhat-menus-3.2-9472.noarch.rpm

杩???penOffice宸辯?瀹?瑁?瀹???锛?榛?璁や?瀹?瑁???opt涓?

浜???????penOffice???°??

1.杩???pt??褰?锛?cd /opt

2.杩???penoffice.org3??褰?锛???cd openoffice.org3

3.杩???rogram??褰?

4.?ц???soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &?

5.瀹???????

  • <%@ LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>????棰???妗?lt;/title>

<script type="text/javascript">??

//?葷┖??String.prototype.Trim = function() {?

var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/);?

return (m == null) ? "" : m[1];?

}

//楠?璇????哄??String.prototype.isMobile = function() {?

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));?

}

//楠?璇??佃??

String.prototype.isTel = function()

{

??? //"?煎?規?煎?: ?藉?朵唬??(2??浣?)-?哄??2??浣?)-?佃???風??(7??浣?)-???哄??3浣?)"

??? //return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

??? return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

}

function chkForm(form) {?

??????? if (form.tel.value.isMobile()||form.tel.value.isTel()) {?

??????????? form.tel.value = form.tel.value.Trim();?

??????????? alert("?ㄧ???佃??/???哄?風????:" + form.tel.value);

??????????? return true;?

??????? }?

??????? else {?

??????????? alert("璇瘋??ユ?g‘?????哄?風?????佃???風??\n\n渚?濡?:13916752109??0712-3614072");?

??????????? tel.focus();

??????????? return false;????????

??????? }??

// ??瀹???椤圭??涓???杩??風?ㄧ??

//??? if(form.userName.value==\'\'){

//??? alert(\'???哄?風??涓??戒負绌猴?\');

//??? form.userName.focus();

//??? return false;

//??? }

//??? if(!form.userName.value.isMobile()) {?

//??? alert("璇瘋??ユ?g‘?????哄?風??!!");?

//??? form.userName.focus();

//??? return false;?

//??? }???????

}?

</script>

</head>

<body>

<form name="form1" method="post" action="" onsubmit="return chkForm(this);">?

??? <input type="text" name="tel" value="13916752109" size="15" />

??? <input type="submit" value="娴? 璇?" />?

</form>?

</body>

</html>

==================姝e??琛ㄨ揪寮???瑙?=======================

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

姝e??琛ㄨ揪寮??ㄥ??锛?

\d 浠h〃涓?涓??闆??

{7,8} 浠h〃7锛?8浣??闆??锛?琛ㄧず?佃???風??锛?

{3,} 浠h〃???哄?風??

d{2,3} 浠h〃?哄??\+]\d{2,3} 浠h〃?介???哄??^13\d{5,9}$/ //130??139???沖?5浣?锛???澶?9浣?

/^153\d{4,8}$/ //????153???沖?4浣?锛???澶?8浣?

/^159\d{4,8}$/ //绉誨??59???沖?4浣?锛???澶?8浣?

=======================================================================

?ㄦ?峰??:<input id="userName" name="userName" type="text" />

缁?瀹??風??<input type="text" id="bindMobilePhone" name="bindMobilePhone" />

<input name="ok" type="submit" value="娉???" onclick="return mycheck();"/>

<script type="text/javascript">

function mycheck()

{

//涓?????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?

var name = /[\w\u4e00-\u9fa5]{3,8}/

//???哄?風??

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

if(document.getElementById(\'userName\').value==\'\'){

?? alert(\'?ㄦ?峰??涓??戒負绌猴?\');

?? return false;

}else if(!name.test(document.getElementById(\'userName\').value)){

?? alert(\'璇瘋??ヤ腑????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?\');

?? return false;

}

if(document.getElementById(\'bindMobilePhone\').value==\'\'){

?? alert(\'缁?瀹??風??涓??戒負绌猴?\');

?? return false;

}else if(!Mobile.test(document.getElementById(\'bindMobilePhone\').value)){

?? alert(\'璇瘋??ユ?g‘?????哄?鳳?\');

?? return false;

}

}

</script>

<%@ LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>????棰???妗?lt;/title>
<script type="text/javascript">  
//?葷┖??String.prototype.Trim = function() { 
var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/); 
return (m == null) ? "" : m[1]; 
}

//楠?璇????哄??String.prototype.isMobile = function() { 
return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim())); 
}

//楠?璇??佃??
String.prototype.isTel = function()
{
    //"?煎?規?煎?: ?藉?朵唬??(2??浣?)-?哄??2??浣?)-?佃???風??(7??浣?)-???哄??3浣?)"
    //return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));
    return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));
}


function chkForm(form) { 
        if (form.tel.value.isMobile()||form.tel.value.isTel()) { 
            form.tel.value = form.tel.value.Trim(); 
            alert("?ㄧ???佃??/???哄?風????:" + form.tel.value);
            return true; 
        } 
        else { 
            alert("璇瘋??ユ?g‘?????哄?風?????佃???風??\n\n渚?濡?:13916752109??0712-3614072"); 
            tel.focus();
            return false;        
        }  

// ??瀹???椤圭??涓???杩??風?ㄧ??
//    if(form.userName.value==\'\'){
//    alert(\'???哄?風??涓??戒負绌猴?\');
//    form.userName.focus();
//    return false;
//    }
//    if(!form.userName.value.isMobile()) { 
//    alert("璇瘋??ユ?g‘?????哄?風??!!"); 
//    form.userName.focus();
//    return false; 
//    }       
} 
</script>

</head>

<body>
<form name="form1" method="post" action="" onsubmit="return chkForm(this);"> 
    <input type="text" name="tel" value="13916752109" size="15" />
    <input type="submit" value="娴? 璇?" /> 
</form> 
</body>
</html>
==================姝e??琛ㄨ揪寮???瑙?=======================
return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

姝e??琛ㄨ揪寮??ㄥ??锛?
\d 浠h〃涓?涓??闆??
{7,8} 浠h〃7锛?8浣??闆??锛?琛ㄧず?佃???風??锛?
{3,} 浠h〃???哄?風??
d{2,3} 浠h〃?哄??\+]\d{2,3} 浠h〃?介???哄??^13\d{5,9}$/ //130??139???沖?5浣?锛???澶?9浣?
/^153\d{4,8}$/ //????153???沖?4浣?锛???澶?8浣?
/^159\d{4,8}$/ //绉誨??59???沖?4浣?锛???澶?8浣?

=======================================================================
?ㄦ?峰??:<input id="userName" name="userName" type="text" />
缁?瀹??風??<input type="text" id="bindMobilePhone" name="bindMobilePhone" />
<input name="ok" type="submit" value="娉???" onclick="return mycheck();"/>

<script type="text/javascript">
function mycheck()
{
//涓?????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?
var name = /[\w\u4e00-\u9fa5]{3,8}/
//???哄?風??
var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

if(document.getElementById(\'userName\').value==\'\'){
   alert(\'?ㄦ?峰??涓??戒負绌猴?\');
   return false;
}else if(!name.test(document.getElementById(\'userName\').value)){
   alert(\'璇瘋??ヤ腑????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?\');
   return false;
}
if(document.getElementById(\'bindMobilePhone\').value==\'\'){
   alert(\'缁?瀹??風??涓??戒負绌猴?\');
   return false;
}else if(!Mobile.test(document.getElementById(\'bindMobilePhone\').value)){
   alert(\'璇瘋??ユ?g‘?????哄?鳳?\');
   return false;
}
}
</script>      

?

<%@ LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>????棰???妗?lt;/title>

<script type="text/javascript">??

//?葷┖??String.prototype.Trim = function() {?

var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/);?

return (m == null) ? "" : m[1];?

}

//楠?璇????哄??String.prototype.isMobile = function() {?

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));?

}

//楠?璇??佃??

String.prototype.isTel = function()

{

??? //"?煎?規?煎?: ?藉?朵唬??(2??浣?)-?哄??2??浣?)-?佃???風??(7??浣?)-???哄??3浣?)"

??? //return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

??? return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

}

function chkForm(form) {?

??????? if (form.tel.value.isMobile()||form.tel.value.isTel()) {?

??????????? form.tel.value = form.tel.value.Trim();?

??????????? alert("?ㄧ???佃??/???哄?風????:" + form.tel.value);

??????????? return true;?

??????? }?

??????? else {?

??????????? alert("璇瘋??ユ?g‘?????哄?風?????佃???風??\n\n渚?濡?:13916752109??0712-3614072");?

??????????? tel.focus();

??????????? return false;????????

??????? }??

// ??瀹???椤圭??涓???杩??風?ㄧ??

//??? if(form.userName.value==\'\'){

//??? alert(\'???哄?風??涓??戒負绌猴?\');

//??? form.userName.focus();

//??? return false;

//??? }

//??? if(!form.userName.value.isMobile()) {?

//??? alert("璇瘋??ユ?g‘?????哄?風??!!");?

//??? form.userName.focus();

//??? return false;?

//??? }???????

}?

</script>

</head>

<body>

<form name="form1" method="post" action="" onsubmit="return chkForm(this);">?

??? <input type="text" name="tel" value="13916752109" size="15" />

??? <input type="submit" value="娴? 璇?" />?

</form>?

</body>

</html>

==================姝e??琛ㄨ揪寮???瑙?=======================

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

姝e??琛ㄨ揪寮??ㄥ??锛?

\d 浠h〃涓?涓??闆??

{7,8} 浠h〃7锛?8浣??闆??锛?琛ㄧず?佃???風??锛?

{3,} 浠h〃???哄?風??

d{2,3} 浠h〃?哄??\+]\d{2,3} 浠h〃?介???哄??^13\d{5,9}$/ //130??139???沖?5浣?锛???澶?9浣?

/^153\d{4,8}$/ //????153???沖?4浣?锛???澶?8浣?

/^159\d{4,8}$/ //绉誨??59???沖?4浣?锛???澶?8浣?

=======================================================================

?ㄦ?峰??:<input id="userName" name="userName" type="text" />

缁?瀹??風??<input type="text" id="bindMobilePhone" name="bindMobilePhone" />

<input name="ok" type="submit" value="娉???" onclick="return mycheck();"/>

<script type="text/javascript">

function mycheck()

{

//涓?????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?

var name = /[\w\u4e00-\u9fa5]{3,8}/

//???哄?風??

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

if(document.getElementById(\'userName\').value==\'\'){

?? alert(\'?ㄦ?峰??涓??戒負绌猴?\');

?? return false;

}else if(!name.test(document.getElementById(\'userName\').value)){

?? alert(\'璇瘋??ヤ腑????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?\');

?? return false;

}

if(document.getElementById(\'bindMobilePhone\').value==\'\'){

?? alert(\'缁?瀹??風??涓??戒負绌猴?\');

?? return false;

}else if(!Mobile.test(document.getElementById(\'bindMobilePhone\').value)){

?? alert(\'璇瘋??ユ?g‘?????哄?鳳?\');

?? return false;

}

}

</script>

<%@ LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>????棰???妗?lt;/title>

<script type="text/javascript">??

//?葷┖??String.prototype.Trim = function() {?

var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/);?

return (m == null) ? "" : m[1];?

}

//楠?璇????哄??String.prototype.isMobile = function() {?

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));?

}

//楠?璇??佃??

String.prototype.isTel = function()

{

??? //"?煎?規?煎?: ?藉?朵唬??(2??浣?)-?哄??2??浣?)-?佃???風??(7??浣?)-???哄??3浣?)"

??? //return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

??? return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

}

function chkForm(form) {?

??????? if (form.tel.value.isMobile()||form.tel.value.isTel()) {?

??????????? form.tel.value = form.tel.value.Trim();?

??????????? alert("?ㄧ???佃??/???哄?風????:" + form.tel.value);

??????????? return true;?

??????? }?

??????? else {?

??????????? alert("璇瘋??ユ?g‘?????哄?風?????佃???風??\n\n渚?濡?:13916752109??0712-3614072");?

??????????? tel.focus();

??????????? return false;????????

??????? }??

// ??瀹???椤圭??涓???杩??風?ㄧ??

//??? if(form.userName.value==\'\'){

//??? alert(\'???哄?風??涓??戒負绌猴?\');

//??? form.userName.focus();

//??? return false;

//??? }

//??? if(!form.userName.value.isMobile()) {?

//??? alert("璇瘋??ユ?g‘?????哄?風??!!");?

//??? form.userName.focus();

//??? return false;?

//??? }???????

}?

</script>

</head>

<body>

<form name="form1" method="post" action="" onsubmit="return chkForm(this);">?

??? <input type="text" name="tel" value="13916752109" size="15" />

??? <input type="submit" value="娴? 璇?" />?

</form>?

</body>

</html>

==================姝e??琛ㄨ揪寮???瑙?=======================

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

姝e??琛ㄨ揪寮??ㄥ??锛?

\d 浠h〃涓?涓??闆??

{7,8} 浠h〃7锛?8浣??闆??锛?琛ㄧず?佃???風??锛?

{3,} 浠h〃???哄?風??

d{2,3} 浠h〃?哄??\+]\d{2,3} 浠h〃?介???哄??^13\d{5,9}$/ //130??139???沖?5浣?锛???澶?9浣?

/^153\d{4,8}$/ //????153???沖?4浣?锛???澶?8浣?

/^159\d{4,8}$/ //绉誨??59???沖?4浣?锛???澶?8浣?

=======================================================================

?ㄦ?峰??:<input id="userName" name="userName" type="text" />

缁?瀹??風??<input type="text" id="bindMobilePhone" name="bindMobilePhone" />

<input name="ok" type="submit" value="娉???" onclick="return mycheck();"/>

<script type="text/javascript">

function mycheck()

{

//涓?????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?

var name = /[\w\u4e00-\u9fa5]{3,8}/

//???哄?風??

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

if(document.getElementById(\'userName\').value==\'\'){

?? alert(\'?ㄦ?峰??涓??戒負绌猴?\');

?? return false;

}else if(!name.test(document.getElementById(\'userName\').value)){

?? alert(\'璇瘋??ヤ腑????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?\');

?? return false;

}

if(document.getElementById(\'bindMobilePhone\').value==\'\'){

?? alert(\'缁?瀹??風??涓??戒負绌猴?\');

?? return false;

}else if(!Mobile.test(document.getElementById(\'bindMobilePhone\').value)){

?? alert(\'璇瘋??ユ?g‘?????哄?鳳?\');

?? return false;

}

}

</script>

<%@ LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>????棰???妗?lt;/title>

<script type="text/javascript">??

//?葷┖??String.prototype.Trim = function() {?

var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/);?

return (m == null) ? "" : m[1];?

}

//楠?璇????哄??String.prototype.isMobile = function() {?

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));?

}

//楠?璇??佃??

String.prototype.isTel = function()

{

??? //"?煎?規?煎?: ?藉?朵唬??(2??浣?)-?哄??2??浣?)-?佃???風??(7??浣?)-???哄??3浣?)"

??? //return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

??? return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

}

function chkForm(form) {?

??????? if (form.tel.value.isMobile()||form.tel.value.isTel()) {?

??????????? form.tel.value = form.tel.value.Trim();?

??????????? alert("?ㄧ???佃??/???哄?風????:" + form.tel.value);

??????????? return true;?

??????? }?

??????? else {?

??????????? alert("璇瘋??ユ?g‘?????哄?風?????佃???風??\n\n渚?濡?:13916752109??0712-3614072");?

??????????? tel.focus();

??????????? return false;????????

??????? }??

// ??瀹???椤圭??涓???杩??風?ㄧ??

//??? if(form.userName.value==\'\'){

//??? alert(\'???哄?風??涓??戒負绌猴?\');

//??? form.userName.focus();

//??? return false;

//??? }

//??? if(!form.userName.value.isMobile()) {?

//??? alert("璇瘋??ユ?g‘?????哄?風??!!");?

//??? form.userName.focus();

//??? return false;?

//??? }???????

}?

</script>

</head>

<body>

<form name="form1" method="post" action="" onsubmit="return chkForm(this);">?

??? <input type="text" name="tel" value="13916752109" size="15" />

??? <input type="submit" value="娴? 璇?" />?

</form>?

</body>

</html>

==================姝e??琛ㄨ揪寮???瑙?=======================

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

姝e??琛ㄨ揪寮??ㄥ??锛?

\d 浠h〃涓?涓??闆??

{7,8} 浠h〃7锛?8浣??闆??锛?琛ㄧず?佃???風??锛?

{3,} 浠h〃???哄?風??

d{2,3} 浠h〃?哄??\+]\d{2,3} 浠h〃?介???哄??^13\d{5,9}$/ //130??139???沖?5浣?锛???澶?9浣?

/^153\d{4,8}$/ //????153???沖?4浣?锛???澶?8浣?

/^159\d{4,8}$/ //绉誨??59???沖?4浣?锛???澶?8浣?

=======================================================================

?ㄦ?峰??:<input id="userName" name="userName" type="text" />

缁?瀹??風??<input type="text" id="bindMobilePhone" name="bindMobilePhone" />

<input name="ok" type="submit" value="娉???" onclick="return mycheck();"/>

<script type="text/javascript">

function mycheck()

{

//涓?????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?

var name = /[\w\u4e00-\u9fa5]{3,8}/

//???哄?風??

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

if(document.getElementById(\'userName\').value==\'\'){

?? alert(\'?ㄦ?峰??涓??戒負绌猴?\');

?? return false;

}else if(!name.test(document.getElementById(\'userName\').value)){

?? alert(\'璇瘋??ヤ腑????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?\');

?? return false;

}

if(document.getElementById(\'bindMobilePhone\').value==\'\'){

?? alert(\'缁?瀹??風??涓??戒負绌猴?\');

?? return false;

}else if(!Mobile.test(document.getElementById(\'bindMobilePhone\').value)){

?? alert(\'璇瘋??ユ?g‘?????哄?鳳?\');

?? return false;

}

}

</script>

<%@ LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>????棰???妗?lt;/title>

<script type="text/javascript">??

//?葷┖??String.prototype.Trim = function() {?

var m = this.match(/^\s*(\S+(\s+\S+)*)\s*$/);?

return (m == null) ? "" : m[1];?

}

//楠?璇????哄??String.prototype.isMobile = function() {?

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));?

}

//楠?璇??佃??

String.prototype.isTel = function()

{

??? //"?煎?規?煎?: ?藉?朵唬??(2??浣?)-?哄??2??浣?)-?佃???風??(7??浣?)-???哄??3浣?)"

??? //return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

??? return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(this.Trim()));

}

function chkForm(form) {?

??????? if (form.tel.value.isMobile()||form.tel.value.isTel()) {?

??????????? form.tel.value = form.tel.value.Trim();?

??????????? alert("?ㄧ???佃??/???哄?風????:" + form.tel.value);

??????????? return true;?

??????? }?

??????? else {?

??????????? alert("璇瘋??ユ?g‘?????哄?風?????佃???風??\n\n渚?濡?:13916752109??0712-3614072");?

??????????? tel.focus();

??????????? return false;????????

??????? }??

// ??瀹???椤圭??涓???杩??風?ㄧ??

//??? if(form.userName.value==\'\'){

//??? alert(\'???哄?風??涓??戒負绌猴?\');

//??? form.userName.focus();

//??? return false;

//??? }

//??? if(!form.userName.value.isMobile()) {?

//??? alert("璇瘋??ユ?g‘?????哄?風??!!");?

//??? form.userName.focus();

//??? return false;?

//??? }???????

}?

</script>

</head>

<body>

<form name="form1" method="post" action="" onsubmit="return chkForm(this);">?

??? <input type="text" name="tel" value="13916752109" size="15" />

??? <input type="submit" value="娴? 璇?" />?

</form>?

</body>

</html>

==================姝e??琛ㄨ揪寮???瑙?=======================

return (/^(?:13\d|15[89])-?\d{5}(\d{3}|\*{3})$/.test(this.Trim()));

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

姝e??琛ㄨ揪寮??ㄥ??锛?

\d 浠h〃涓?涓??闆??

{7,8} 浠h〃7锛?8浣??闆??锛?琛ㄧず?佃???風??锛?

{3,} 浠h〃???哄?風??

d{2,3} 浠h〃?哄??\+]\d{2,3} 浠h〃?介???哄??^13\d{5,9}$/ //130??139???沖?5浣?锛???澶?9浣?

/^153\d{4,8}$/ //????153???沖?4浣?锛???澶?8浣?

/^159\d{4,8}$/ //绉誨??59???沖?4浣?锛???澶?8浣?

=======================================================================

?ㄦ?峰??:<input id="userName" name="userName" type="text" />

缁?瀹??風??<input type="text" id="bindMobilePhone" name="bindMobilePhone" />

<input name="ok" type="submit" value="娉???" onclick="return mycheck();"/>

<script type="text/javascript">

function mycheck()

{

//涓?????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?

var name = /[\w\u4e00-\u9fa5]{3,8}/

//???哄?風??

var Mobile = /^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15[0-9]\d{8}$/

if(document.getElementById(\'userName\').value==\'\'){

?? alert(\'?ㄦ?峰??涓??戒負绌猴?\');

?? return false;

}else if(!name.test(document.getElementById(\'userName\').value)){

?? alert(\'璇瘋??ヤ腑????瀛?姣?????涓???绾胯?琛?娉ㄥ??锛?3~8浣?\');

?? return false;

}

if(document.getElementById(\'bindMobilePhone\').value==\'\'){

?? alert(\'缁?瀹??風??涓??戒負绌猴?\');

?? return false;

}else if(!Mobile.test(document.getElementById(\'bindMobilePhone\').value)){

?? alert(\'璇瘋??ユ?g‘?????哄?鳳?\');

?? return false;

}

}

</script>

?

Graphviz??澶у??榧?榧???璐?灏?瀹?楠?瀹ょ????浣???浜哄?????涓?涓??誨?懼伐?鳳?瀹???渚?浜??????沖?蟲??寰???????蹇碉???杩?dot璇?瑷??ョ???????骞剁??跺?懼艦锛?绠?????????

?

graphviz瀹?瑁?锛?

?

???????? graphviz??澶?绉?瀹?瑁??瑰?锛?婧???????琛?????

?

???????? 褰??????扮??婧???涓?杞斤?http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz

?

???????? ?跺??????涓?杞介?炬?ュ???э??http://www.graphviz.org/pub/graphviz/stable/SOURCES/

?

???????? ??琛???锛?

?

????????????? Redhat and CentOS:?http://www.graphviz.org/Download_linux_rhel.php

?

????????????? Fedora:?http://www.graphviz.org/Download_linux_fedora.php

?

??????????????Ubuntu锛?http://www.graphviz.org/Download_linux_ubuntu.php

?

????????? yum锛?

?

????????????? yum list \'graphviz*\' ?ョ??宸插??瑁?graphviz??

????????????? yum install \'graphviz*\' 瀹?瑁?graphviz

?

?

?

涓????缁???涓?绠?????搴??ㄤ?涓哄?ラ?ㄣ??

?

graphviz瀹?渚?锛?? ? ??

?

?

?

[plain]?view plaincopy
  1. digraph?g{??
  2. ????node?[shape?=?record,height=.1//??瀹?涔?浜???涓??㈢???峰?;????
  3. ????node0[label?=?"<f0>?|<f1>?G|<f2>?"];????
  4. ????//????涓?涓?node,????涓?涓?灞??э?绗?浜?涓?????瀛?涓?锛??朵?涓や釜涓虹┖??
  5. ????????node1[label?=?"<f0>?|<f1>?E|<f2>?"];????
  6. ???????node2[label?=?"<f0>?|<f1>?B|<f2>?"];????
  7. ???????node3[label?=?"<f0>?|<f1>?F|<f2>?"];????
  8. ???????node4[label?=?"<f0>?|<f1>?R|<f2>?"];????
  9. ???????node5[label?=?"<f0>?|<f1>?H|<f2>?"];????
  10. ???????node6[label?=?"<f0>?|<f1>?Y|<f2>?"];????
  11. ???????node7[label?=?"<f0>?|<f1>?A|<f2>?"];????
  12. ???????node8[label?=?"<f0>?|<f1>?C|<f2>?"];????
  13. ??????
  14. ????"node0":?f2->"node4":f1;??
  15. ????//????绗?涓?涓?灞??ц???ode4??绗?浜?涓?灞?????
  16. ????"node0":?f0->"node1":f1;??
  17. ????"node1":?f0->"node2":f1;??
  18. ????"node1":?f2->"node3":f1;??
  19. ????"node2":?f2->"node8":f1;??
  20. ????"node2":?f0->"node7":f1;??
  21. ????"node4":?f2->"node6":f1;??
  22. ????"node4":?f0->"node5":f1;??
  23. }??

?峰?濡??撅?

?

?

????

???????????????????????????????????

?

?村??懼艦瀹?渚???????璇峰???э?http://www.graphviz.org/Gallery.php??

Graphviz??澶у??榧?榧???璐?灏?瀹?楠?瀹ょ????浣???浜哄?????涓?涓??誨?懼伐?鳳?瀹???渚?浜??????沖?蟲??寰???????蹇碉???杩?dot璇?瑷??ョ???????骞剁??跺?懼艦锛?绠?????????

graphviz瀹?瑁?锛?

???????? graphviz??澶?绉?瀹?瑁??瑰?锛?婧???????琛?????

???????? 褰??????扮??婧???涓?杞斤?http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz

???????? ?跺??????涓?杞介?炬?ュ???э??http://www.graphviz.org/pub/graphviz/stable/SOURCES/

???????? ??琛???锛?

????????????? Redhat and CentOS:?http://www.graphviz.org/Download_linux_rhel.php

????????????? Fedora:?http://www.graphviz.org/Download_linux_fedora.php

??????????????Ubuntu锛?http://www.graphviz.org/Download_linux_ubuntu.php

????????? yum锛?

????????????? yum list \'graphviz*\' ?ョ??宸插??瑁?graphviz??

????????????? yum install \'graphviz*\' 瀹?瑁?graphviz

?

涓????缁???涓?绠?????搴??ㄤ?涓哄?ラ?ㄣ??

graphviz瀹?渚?锛?? ? ??

?

[plain]?view plaincopy

  1. digraph?g{??
  2. ????node?[shape?=?record,height=.1//??瀹?涔?浜???涓??㈢???峰?;????
  3. ????node0[label?=?"<f0>?|<f1>?G|<f2>?"];????
  4. ????//????涓?涓?node,????涓?涓?灞??э?绗?浜?涓?????瀛?涓?锛??朵?涓や釜涓虹┖??
  5. ????????node1[label?=?"<f0>?|<f1>?E|<f2>?"];????
  6. ???????node2[label?=?"<f0>?|<f1>?B|<f2>?"];????
  7. ???????node3[label?=?"<f0>?|<f1>?F|<f2>?"];????
  8. ???????node4[label?=?"<f0>?|<f1>?R|<f2>?"];????
  9. ???????node5[label?=?"<f0>?|<f1>?H|<f2>?"];????
  10. ???????node6[label?=?"<f0>?|<f1>?Y|<f2>?"];????
  11. ???????node7[label?=?"<f0>?|<f1>?A|<f2>?"];????
  12. ???????node8[label?=?"<f0>?|<f1>?C|<f2>?"];????
  13. ??????
  14. ????"node0":?f2->"node4":f1;??
  15. ????//????绗?涓?涓?灞??ц???ode4??绗?浜?涓?灞?????
  16. ????"node0":?f0->"node1":f1;??
  17. ????"node1":?f0->"node2":f1;??
  18. ????"node1":?f2->"node3":f1;??
  19. ????"node2":?f2->"node8":f1;??
  20. ????"node2":?f0->"node7":f1;??
  21. ????"node4":?f2->"node6":f1;??
  22. ????"node4":?f0->"node5":f1;??
  23. }??

?峰?濡??撅?

?

????

???????????????????????????????????

Graphviz??澶у??榧?榧???璐?灏?瀹?楠?瀹ょ????浣???浜哄?????涓?涓??誨?懼伐?鳳?瀹???渚?浜??????沖?蟲??寰???????蹇碉???杩?dot璇?瑷??ョ???????骞剁??跺?懼艦锛?绠?????????

graphviz瀹?瑁?锛?

???????? graphviz??澶?绉?瀹?瑁??瑰?锛?婧???????琛?????

???????? 褰??????扮??婧???涓?杞斤?http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz

???????? ?跺??????涓?杞介?炬?ュ???э??http://www.graphviz.org/pub/graphviz/stable/SOURCES/

???????? ??琛???锛?

????????????? Redhat and CentOS:?http://www.graphviz.org/Download_linux_rhel.php

????????????? Fedora:?http://www.graphviz.org/Download_linux_fedora.php

??????????????Ubuntu锛?http://www.graphviz.org/Download_linux_ubuntu.php

????????? yum锛?

????????????? yum list \'graphviz*\' ?ョ??宸插??瑁?graphviz??

????????????? yum install \'graphviz*\' 瀹?瑁?graphviz

?

涓????缁???涓?绠?????搴??ㄤ?涓哄?ラ?ㄣ??

graphviz瀹?渚?锛?? ? ??

?

[plain]?view plaincopy

  1. digraph?g{??
  2. ????node?[shape?=?record,height=.1//??瀹?涔?浜???涓??㈢???峰?;????
  3. ????node0[label?=?"<f0>?|<f1>?G|<f2>?"];????
  4. ????//????涓?涓?node,????涓?涓?灞??э?绗?浜?涓?????瀛?涓?锛??朵?涓や釜涓虹┖??
  5. ????????node1[label?=?"<f0>?|<f1>?E|<f2>?"];????
  6. ???????node2[label?=?"<f0>?|<f1>?B|<f2>?"];????
  7. ???????node3[label?=?"<f0>?|<f1>?F|<f2>?"];????
  8. ???????node4[label?=?"<f0>?|<f1>?R|<f2>?"];????
  9. ???????node5[label?=?"<f0>?|<f1>?H|<f2>?"];????
  10. ???????node6[label?=?"<f0>?|<f1>?Y|<f2>?"];????
  11. ???????node7[label?=?"<f0>?|<f1>?A|<f2>?"];????
  12. ???????node8[label?=?"<f0>?|<f1>?C|<f2>?"];????
  13. ??????
  14. ????"node0":?f2->"node4":f1;??
  15. ????//????绗?涓?涓?灞??ц???ode4??绗?浜?涓?灞?????
  16. ????"node0":?f0->"node1":f1;??
  17. ????"node1":?f0->"node2":f1;??
  18. ????"node1":?f2->"node3":f1;??
  19. ????"node2":?f2->"node8":f1;??
  20. ????"node2":?f0->"node7":f1;??
  21. ????"node4":?f2->"node6":f1;??
  22. ????"node4":?f0->"node5":f1;??
  23. }??

?峰?濡??撅?

?

????

???????????????????????????????????

Graphviz??澶у??榧?榧???璐?灏?瀹?楠?瀹ょ????浣???浜哄?????涓?涓??誨?懼伐?鳳?瀹???渚?浜??????沖?蟲??寰???????蹇碉???杩?dot璇?瑷??ョ???????骞剁??跺?懼艦锛?绠?????????

graphviz瀹?瑁?锛?

???????? graphviz??澶?绉?瀹?瑁??瑰?锛?婧???????琛?????

???????? 褰??????扮??婧???涓?杞斤?http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz

???????? ?跺??????涓?杞介?炬?ュ???э??http://www.graphviz.org/pub/graphviz/stable/SOURCES/

???????? ??琛???锛?

????????????? Redhat and CentOS:?http://www.graphviz.org/Download_linux_rhel.php

????????????? Fedora:?http://www.graphviz.org/Download_linux_fedora.php

??????????????Ubuntu锛?http://www.graphviz.org/Download_linux_ubuntu.php

????????? yum锛?

????????????? yum list \'graphviz*\' ?ョ??宸插??瑁?graphviz??

????????????? yum install \'graphviz*\' 瀹?瑁?graphviz

?

涓????缁???涓?绠?????搴??ㄤ?涓哄?ラ?ㄣ??

graphviz瀹?渚?锛?? ? ??

?

[plain]?view plaincopy

  1. digraph?g{??
  2. ????node?[shape?=?record,height=.1//??瀹?涔?浜???涓??㈢???峰?;????
  3. ????node0[label?=?"<f0>?|<f1>?G|<f2>?"];????
  4. ????//????涓?涓?node,????涓?涓?灞??э?绗?浜?涓?????瀛?涓?锛??朵?涓や釜涓虹┖??
  5. ????????node1[label?=?"<f0>?|<f1>?E|<f2>?"];????
  6. ???????node2[label?=?"<f0>?|<f1>?B|<f2>?"];????
  7. ???????node3[label?=?"<f0>?|<f1>?F|<f2>?"];????
  8. ???????node4[label?=?"<f0>?|<f1>?R|<f2>?"];????
  9. ???????node5[label?=?"<f0>?|<f1>?H|<f2>?"];????
  10. ???????node6[label?=?"<f0>?|<f1>?Y|<f2>?"];????
  11. ???????node7[label?=?"<f0>?|<f1>?A|<f2>?"];????
  12. ???????node8[label?=?"<f0>?|<f1>?C|<f2>?"];????
  13. ??????
  14. ????"node0":?f2->"node4":f1;??
  15. ????//????绗?涓?涓?灞??ц???ode4??绗?浜?涓?灞?????
  16. ????"node0":?f0->"node1":f1;??
  17. ????"node1":?f0->"node2":f1;??
  18. ????"node1":?f2->"node3":f1;??
  19. ????"node2":?f2->"node8":f1;??
  20. ????"node2":?f0->"node7":f1;??
  21. ????"node4":?f2->"node6":f1;??
  22. ????"node4":?f0->"node5":f1;??
  23. }??

?峰?濡??撅?

?

????

???????????????????????????????????

graphviz瀹?瑁???浣跨??/h3>

2011-11-16 09:47?906浜洪??璇宦?璇?璁?1)??惰???涓炬??

?????? Graphviz??澶у??榧?榧???璐?灏?瀹?楠?瀹ょ????浣???浜哄?????涓?涓??誨?懼伐?鳳?瀹???渚?浜??????沖?蟲??寰???????蹇碉???杩?dot璇?瑷??ョ???????骞剁??跺?懼艦锛?绠?????????

graphviz瀹?瑁?锛?

???????? graphviz??澶?绉?瀹?瑁??瑰?锛?婧???????琛?????

???????? 褰??????扮??婧???涓?杞斤?http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz

???????? ?跺??????涓?杞介?炬?ュ???э??http://www.graphviz.org/pub/graphviz/stable/SOURCES/

???????? ??琛???锛?

????????????? Redhat and CentOS:?http://www.graphviz.org/Download_linux_rhel.php

????????????? Fedora:?http://www.graphviz.org/Download_linux_fedora.php

??????????????Ubuntu锛?http://www.graphviz.org/Download_linux_ubuntu.php

????????? yum锛?

????????????? yum list \'graphviz*\' ?ョ??宸插??瑁?graphviz??

????????????? yum install \'graphviz*\' 瀹?瑁?graphviz

?

涓????缁???涓?绠?????搴??ㄤ?涓哄?ラ?ㄣ??

graphviz瀹?渚?锛?? ? ??

?

[plain]?view plaincopy

  1. digraph?g{??
  2. ????node?[shape?=?record,height=.1//??瀹?涔?浜???涓??㈢???峰?;????
  3. ????node0[label?=?"<f0>?|<f1>?G|<f2>?"];????
  4. ????//????涓?涓?node,????涓?涓?灞??э?绗?浜?涓?????瀛?涓?锛??朵?涓や釜涓虹┖??
  5. ????????node1[label?=?"<f0>?|<f1>?E|<f2>?"];????
  6. ???????node2[label?=?"<f0>?|<f1>?B|<f2>?"];????
  7. ???????node3[label?=?"<f0>?|<f1>?F|<f2>?"];????
  8. ???????node4[label?=?"<f0>?|<f1>?R|<f2>?"];????
  9. ???????node5[label?=?"<f0>?|<f1>?H|<f2>?"];????
  10. ???????node6[label?=?"<f0>?|<f1>?Y|<f2>?"];????
  11. ???????node7[label?=?"<f0>?|<f1>?A|<f2>?"];????
  12. ???????node8[label?=?"<f0>?|<f1>?C|<f2>?"];????
  13. ??????
  14. ????"node0":?f2->"node4":f1;??
  15. ????//????绗?涓?涓?灞??ц???ode4??绗?浜?涓?灞?????
  16. ????"node0":?f0->"node1":f1;??
  17. ????"node1":?f0->"node2":f1;??
  18. ????"node1":?f2->"node3":f1;??
  19. ????"node2":?f2->"node8":f1;??
  20. ????"node2":?f0->"node7":f1;??
  21. ????"node4":?f2->"node6":f1;??
  22. ????"node4":?f0->"node5":f1;??
  23. }??

?峰?濡??撅?

?

????

???????????????????????????????????

?村??懼艦瀹?渚???????璇峰???э?http://www.graphviz.org/Gallery.php??

graphviz瀹?瑁???浣跨??/h3>

2011-11-16 09:47?906浜洪??璇宦?璇?璁?1)??惰???涓炬??

?????? Graphviz??澶у??榧?榧???璐?灏?瀹?楠?瀹ょ????浣???浜哄?????涓?涓??誨?懼伐?鳳?瀹???渚?浜??????沖?蟲??寰???????蹇碉???杩?dot璇?瑷??ョ???????骞剁??跺?懼艦锛?绠?????????

graphviz瀹?瑁?锛?

???????? graphviz??澶?绉?瀹?瑁??瑰?锛?婧???????琛?????

???????? 褰??????扮??婧???涓?杞斤?http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz

???????? ?跺??????涓?杞介?炬?ュ???э??http://www.graphviz.org/pub/graphviz/stable/SOURCES/

???????? ??琛???锛?

????????????? Redhat and CentOS:?http://www.graphviz.org/Download_linux_rhel.php

????????????? Fedora:?http://www.graphviz.org/Download_linux_fedora.php

??????????????Ubuntu锛?http://www.graphviz.org/Download_linux_ubuntu.php

????????? yum锛?

????????????? yum list \'graphviz*\' ?ョ??宸插??瑁?graphviz??

????????????? yum install \'graphviz*\' 瀹?瑁?graphviz

?

涓????缁???涓?绠?????搴??ㄤ?涓哄?ラ?ㄣ??

graphviz瀹?渚?锛?? ? ??

?

[plain]?view plaincopy

  1. digraph?g{??
  2. ????node?[shape?=?record,height=.1//??瀹?涔?浜???涓??㈢???峰?;????
  3. ????node0[label?=?"<f0>?|<f1>?G|<f2>?"];????
  4. ????//????涓?涓?node,????涓?涓?灞??э?绗?浜?涓?????瀛?涓?锛??朵?涓や釜涓虹┖??
  5. ????????node1[label?=?"<f0>?|<f1>?E|<f2>?"];????
  6. ???????node2[label?=?"<f0>?|<f1>?B|<f2>?"];????
  7. ???????node3[label?=?"<f0>?|<f1>?F|<f2>?"];????
  8. ???????node4[label?=?"<f0>?|<f1>?R|<f2>?"];????
  9. ???????node5[label?=?"<f0>?|<f1>?H|<f2>?"];????
  10. ???????node6[label?=?"<f0>?|<f1>?Y|<f2>?"];????
  11. ???????node7[label?=?"<f0>?|<f1>?A|<f2>?"];????
  12. ???????node8[label?=?"<f0>?|<f1>?C|<f2>?"];????
  13. ??????
  14. ????"node0":?f2->"node4":f1;??
  15. ????//????绗?涓?涓?灞??ц???ode4??绗?浜?涓?灞?????
  16. ????"node0":?f0->"node1":f1;??
  17. ????"node1":?f0->"node2":f1;??
  18. ????"node1":?f2->"node3":f1;??
  19. ????"node2":?f2->"node8":f1;??
  20. ????"node2":?f0->"node7":f1;??
  21. ????"node4":?f2->"node6":f1;??
  22. ????"node4":?f0->"node5":f1;??
  23. }??

?峰?濡??撅?

?

????

???????????????????????????????????

?村??懼艦瀹?渚???????璇峰???э?http://www.graphviz.org/Gallery.php??

graphviz瀹?瑁???浣跨??/h3>

2011-11-16 09:47?906浜洪??璇宦?璇?璁?1)??惰???涓炬??

?????? Graphviz??澶у??榧?榧???璐?灏?瀹?楠?瀹ょ????浣???浜哄?????涓?涓??誨?懼伐?鳳?瀹???渚?浜??????沖?蟲??寰???????蹇碉???杩?dot璇?瑷??ョ???????骞剁??跺?懼艦锛?绠?????????

graphviz瀹?瑁?锛?

???????? graphviz??澶?绉?瀹?瑁??瑰?锛?婧???????琛?????

???????? 褰??????扮??婧???涓?杞斤?http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz

???????? ?跺??????涓?杞介?炬?ュ???э??http://www.graphviz.org/pub/graphviz/stable/SOURCES/

???????? ??琛???锛?

????????????? Redhat and CentOS:?http://www.graphviz.org/Download_linux_rhel.php

????????????? Fedora:?http://www.graphviz.org/Download_linux_fedora.php

??????????????Ubuntu锛?http://www.graphviz.org/Download_linux_ubuntu.php

????????? yum锛?

????????????? yum list \'graphviz*\' ?ョ??宸插??瑁?graphviz??

????????????? yum install \'graphviz*\' 瀹?瑁?graphviz

?

涓????缁???涓?绠?????搴??ㄤ?涓哄?ラ?ㄣ??

graphviz瀹?渚?锛?? ? ??

?

[plain]?view plaincopy

  1. digraph?g{??
  2. ????node?[shape?=?record,height=.1//??瀹?涔?浜???涓??㈢???峰?;????
  3. ????node0[label?=?"<f0>?|<f1>?G|<f2>?"];????
  4. ????//????涓?涓?node,????涓?涓?灞??э?绗?浜?涓?????瀛?涓?锛??朵?涓や釜涓虹┖??
  5. ????????node1[label?=?"<f0>?|<f1>?E|<f2>?"];????
  6. ???????node2[label?=?"<f0>?|<f1>?B|<f2>?"];????
  7. ???????node3[label?=?"<f0>?|<f1>?F|<f2>?"];????
  8. ???????node4[label?=?"<f0>?|<f1>?R|<f2>?"];????
  9. ???????node5[label?=?"<f0>?|<f1>?H|<f2>?"];????
  10. ???????node6[label?=?"<f0>?|<f1>?Y|<f2>?"];????
  11. ???????node7[label?=?"<f0>?|<f1>?A|<f2>?"];????
  12. ???????node8[label?=?"<f0>?|<f1>?C|<f2>?"];????
  13. ??????
  14. ????"node0":?f2->"node4":f1;??
  15. ????//????绗?涓?涓?灞??ц???ode4??绗?浜?涓?灞?????
  16. ????"node0":?f0->"node1":f1;??
  17. ????"node1":?f0->"node2":f1;??
  18. ????"node1":?f2->"node3":f1;??
  19. ????"node2":?f2->"node8":f1;??
  20. ????"node2":?f0->"node7":f1;??
  21. ????"node4":?f2->"node6":f1;??
  22. ????"node4":?f0->"node5":f1;??
  23. }??

?峰?濡??撅?

?

????

???????????????????????????????????

?村??懼艦瀹?渚???????璇峰???э?http://www.graphviz.org/Gallery.php??

<div id="pro_loading" style="display:none;width:996px;height:331px;left:0px;top:68px;position: absolute;z-index: 9999;_z-index: 9999;_position:absolute;-moz-opacity:0.10;opacity:0.1;filter:alpha(opacity=10);BACKGROUND-COLOR:#000;"><img style="padding-left:490px;padding-top:120px;" src="<?php echo DT_PATH; ?>/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/></div>
      
????
<div id="pro_loading" style="display:none;width:996px;height:331px;left:0px;top:68px;position: absolute;z-index: 9999;_z-index: 9999;_position:absolute;-moz-opacity:0.10;opacity:0.1;filter:alpha(opacity=10);BACKGROUND-COLOR:#000;"><img style="padding-left:490px;padding-top:120px;" src="<?php echo DT_PATH; ?>/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/></div><div id="pro_loading" style="display:none;width:996px;height:331px;left:0px;top:68px;position: absolute;z-index: 9999;_z-index: 9999;_position:absolute;-moz-opacity:0.10;opacity:0.1;filter:alpha(opacity=10);BACKGROUND-COLOR:#000;"><img style="padding-left:490px;padding-top:120px;" src="<?php echo DT_PATH; ?>/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/></div><div id="pro_loading" style="display:none;width:996px;height:331px;left:0px;top:68px;position: absolute;z-index: 9999;_z-index: 9999;_position:absolute;-moz-opacity:0.10;opacity:0.1;filter:alpha(opacity=10);BACKGROUND-COLOR:#000;"><img style="padding-left:490px;padding-top:120px;" src="<?php echo DT_PATH; ?>/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/></div><div id="pro_loading" style="display:none;width:996px;height:331px;left:0px;top:68px;position: absolute;z-index: 9999;_z-index: 9999;_position:absolute;-moz-opacity:0.10;opacity:0.1;filter:alpha(opacity=10);BACKGROUND-COLOR:#000;"><img style="padding-left:490px;padding-top:120px;" src="<?php echo DT_PATH; ?>/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/></div>      
????<div id="pro_loading" style="display:none;width:996px;height:331px;left:0px;top:68px;position: absolute;z-index: 9999;_z-index: 9999;_position:absolute;-moz-opacity:0.10;opacity:0.1;filter:alpha(opacity=10);BACKGROUND-COLOR:#000;"><img style="padding-left:490px;padding-top:120px;" src="<?php echo DT_PATH; ?>/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/></div><div id="pro_loading" style="display:none;width:996px;height:331px;left:0px;top:68px;position: absolute;z-index: 9999;_z-index: 9999;_position:absolute;-moz-opacity:0.10;opacity:0.1;filter:alpha(opacity=10);BACKGROUND-COLOR:#000;"><img style="padding-left:490px;padding-top:120px;" src="<?php echo DT_PATH; ?>/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/></div><div id="pro_loading" style="display:none;width:996px;height:331px;left:0px;top:68px;position: absolute;z-index: 9999;_z-index: 9999;_position:absolute;-moz-opacity:0.10;opacity:0.1;filter:alpha(opacity=10);BACKGROUND-COLOR:#000;"><img style="padding-left:490px;padding-top:120px;" src="<?php echo DT_PATH; ?>/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/></div>
<div id="pro_loading" style="display:none;width:996px;height:331px;left:0px;top:68px;position: absolute;z-index: 9999;_z-index: 9999;_position:absolute;-moz-opacity:0.10;opacity:0.1;filter:alpha(opacity=10);BACKGROUND-COLOR:#000;"><img style="padding-left:490px;padding-top:120px;" src="<?php echo DT_PATH; ?>/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/></div>      

?

/file/jBox/Skins2/Yellow/images/jbox-loading2.gif"/>