示例#1
0
        echo $links;
        echo $scripts;
        return $this;
    }
}
?>
<!doctype html>
<html>
	<head>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		<?php 
$obj = new Resource(array('development' => true, 'merge' => false));
$obj->addCSS('reset');
$obj->addCSS('app');
$obj->addJS(array('lib/jquery.min', 'lib/jquery-ui-min', 'lib/underscore', 'lib/Backbone', 'global', 'config', 'cell', 'select_menu', 'select_view', 'cell_view', 'bootstrap'));
$obj->flush();
?>
	</head>
	<body>
		<a href="" id="preview" style="position:fixed;top:5px;right:5px;z-index:1;" target="_blank">预览</a>
		<div id="shower_box">
			<iframe id="html_iframe"></iframe>
		</div>
		
		<div id="operate_box">
			<!-- <div class="option-iframe-back"></div> -->
			
			<div id="selectMenu">
				<div class="selectMenu-bg"></div>
				<svg class="" height="100" width="100" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
					<g class="">
示例#2
0
<?php

include 'init.php';
$JS = new Resource(new DriverJavaScript(array('base-uri' => '/')));
$JS->setFile('js/example.js');
$JS->flush();