detail.html 837 Bytes
<div id="gridtable-detail" class="page out" data-title="表格详情">
	<div id="gridtable-detail-header"></div>
	<div id="gridtable-detail-a"></div>
</div>
<script>
require(["NavHeader", "Html"], function(NavHeader, Html) {
	function getParam(key){
		var result = "";
		var hash = location.hash;
		if(location.hash.indexOf("?" != -1)){
			location.hash.split("?")[1].split("&").forEach(function(item){
				var splits = item.split("=");
				if(key == splits[0]){
					result = splits[1];
					return;
				}
			});
    		
		}
		return decodeURIComponent(result);
	};
	
	new NavHeader({
		el: "gridtable-detail-header",
		option: {
			title : "表格详情",
			smallTitle : "gridtable detail"
		}
	}).render();
	
	new Html({
		el: "gridtable-detail-a",
		option: {
			"htm": "数据id->"+getParam("billid")
		}
	}).render();
});
</script>