detail.html 846 Bytes
<div id="nlargelist-detail" class="page out" data-title="大图列表详情">
	<div id="nlargelist-detail-header"></div>
	<div id="nlargelist-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: "nlargelist-detail-header",
		option: {
			title : "大图列表详情",
			smallTitle : "nlargelist detail"
		}
	}).render();
	
	new Html({
		el: "nlargelist-detail-a",
		option: {
			htm: "数据id->"+getParam("billid")
		}
	}).render();
});
</script>