detail.html 816 Bytes
<div id="navigation-detail" class="page out" data-title="URL列表详情">
	<div id="navigation-detail-header"></div>
	<div id="navigation-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: "navigation-detail-header",
		data: {
			title : "菜单"+getParam("type")
		}
	}).render();
	
	new Html({
		el: "navigation-detail-a",
		data: {
			"htm": "这是菜单"+getParam("type")
		}
	}).render();
});
</script>