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...")
Line 5: Line 5:
start=srcc.indexOf("#");      //返回 "? "在字串中第一次出现的位置  
start=srcc.indexOf("#");      //返回 "? "在字串中第一次出现的位置  
end=srcc.length;    //字串的长度  
end=srcc.length;    //字串的长度  
-
srcc.substring(start+1,end)     //得到部分字串
+
document.write(srcc.substring(start+1,end));
-
document.write(srcc);
+
</script>
</script>
</html>
</html>

Revision as of 12:19, 25 September 2012