我用VBSCRIPT演示给你看吧,跟ASP的原理一样
[CODE]<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<SCRIPT LANGUAGE="vbScript">
<!--
dim xiaoshu,xiaoshubufen
xiaoshu=3.14159
xiaoshubufen=right(xiaoshu,len(xiaoshu)-InstrRev(xiaoshu,"."))
document.write(xiaoshubufen)
//-->
</SCRIPT>
</BODY>
</HTML>[/CODE]
我用VBSCRIPT演示给你看吧,跟ASP的原理一样
[CODE]<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<SCRIPT LANGUAGE="vbScript">
<!--
dim xiaoshu,xiaoshuarray
xiaoshu=3.14159
xiaoshuarray=split(xiaoshu,".")
document.write(xiaoshuarray(1))
//-->
</SCRIPT>
</BODY>
</HTML>[/CODE]