提交 800978cd 编写于 作者: hlwwx's avatar hlwwx

'增加wo参数生成json'

上级 f21654e2
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<script src="./jquery.min.js"></script>
<script src="./common.js"></script>
<style type="text/css">
<!--
body {
font-family: Arial, Helvetica, sans-serif;
font-size:12px;
color:#666666;
background:#fff;
text-align:left;
}
a {
color:#1E7ACE;
text-decoration:none;
}
a:hover {
color:#000;
text-decoration:underline;
}
h3 {
font-size:14px;
font-weight:bold;
}
pre,p {
color:#1E7ACE;
margin:4px;
}
table {
border-collapse: collapse;
margin: 0 auto;
text-align: left;
}
table td, table th {
border: 1px solid #cad9ea;
color: #666;
height: 30px;
padding-left:20px;
padding-right:60px;
}
table thead th {
background-color: #CCE8EB;
width: 100px;
}
table tr:nth-child(odd) {
background: #fff;
}
table tr:nth-child(even) {
background: #F5FAFA;
}
-->
</style>
<script>
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); return null; //返回参数值
}
var action = getUrlParam("action");
$(function() {
$.getJSON('../describe/jsdoc/"+action+".json?rd=' + Math.random(), function(json) {
var str = '<table border="1">';
str = str + "<tr><td>"
for(var key in json){
alert(key);
str = str + key;
}
str = str + "</td></tr>"
str += '</table>';
$('#content').html(str);
});
});
</script>
</head>
<body style="font-size: 12px; font-family: Microsoft Yahei; margin: 0px">
<center id="title" style="font-size:32px; font-weight:bold">O2OA Table structure URL</center>
<div id="content" style="margin-top:10px">&nbsp;</div>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册