Team:SEU O China/test

From 2012.igem.org

(Difference between revisions)
(Created page with "<html> <script type="text/javascript"> var srcc=window.location; //得到地址栏连接 srcc=srcc.toString() //转换成string类型,可以省略 start=srcc.indexO...")
(Blanked the page)
 
(One intermediate revision not shown)
Line 1: Line 1:
-
<html>
+
 
-
<script type="text/javascript">
+
-
var srcc=window.location;      //得到地址栏连接
+
-
srcc=srcc.toString()    //转换成string类型,可以省略
+
-
start=srcc.indexOf("#");      //返回 "? "在字串中第一次出现的位置
+
-
end=srcc.length;    //字串的长度
+
-
srcc.substring(start+1,end)    //得到部分字串
+
-
document.write(srcc);
+
-
</script>
+
-
</html>
+

Latest revision as of 13:41, 25 September 2012