/** * 获取URL中指定参数的值 * * @param name 参数名称 * @returns */ function getQueryString(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match(reg); if (r != null) { return unescape(r[2]); } r
<script type="text/javascript"> function getTdValue() { var tableId = document.getElementById("tab"); var str = ""; //获取table中的某一列的值 for (var i = 1; i < tableId.rows.length; i++) { alert(tableId.rows[i].cells[3].inne
url : index.php?id=123 <script type="text/javascript"> function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str