1.构造函数: 控制器类必须继承了\think\Controller类,才能使用: 方法_initialize 代码: <?php namespace app\lian\controller; use think\Controller; use think\Db; use think\Request; class Index extends Controller { public function _initialize() { echo 'init|||'; } public function
var testdata='sdfkshdf'; //export testdata;//err export {testdata as ms}; export var firstName = 'Michael'; export var lastName = 'Jackson'; export var year = 1958; import $ from 'jquery'; import lastName from './index2.js'; import {ms} from './index