你是说这一堆都是错误:
(unknown) [Vue warn]: Error compiling template:
<div id="app">
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<!-- Collapsed Hamburger -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Branding Image -->
<a class="navbar-brand" href="http://www.zt.com">
<!-- 这里的name 是config/app.php 里 -->
Laravel
</a>
</div>
<div class="collapse navbar-collapse" id="app-navbar-collapse">
<!-- Left Side Of Navbar -->
<ul class="nav navbar-nav">
</ul>
<!-- Right Side Of Navbar -->
<ul class="nav navbar-nav navbar-right">
<!-- Authentication Links -->
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
lg23 <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="http://www.zt.com/logout" onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
退 出
</a>
<form id="logout-form" action="http://www.zt.com/logout" method="POST" style="display: none;">
<input type="hidden" name="_token" value="BWqB9jQEMfrJVGH94RHGgLSMnQs5IxEs52ufVn0d">
</form>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
</div>
<!-- 配置文件 -->
<script type="text/javascript" src="http://www.zt.com/vendor/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="http://www.zt.com/vendor/ueditor/ueditor.all.js"></script>
<script>
window.UEDITOR_CONFIG.serverUrl = '/ueditor/server'
</script><div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">发布问题</div>
<div class="panel-body">
<form action="/questions" method="post">
<input type="hidden" name="_token" value="BWqB9jQEMfrJVGH94RHGgLSMnQs5IxEs52ufVn0d">
<div class="form-group">
<label for="title">标 题</label>
<input type="text" value="" name="title" class="form-control" placeholder="标题" id="title">
</div>
<div class="form-group">
<select class="js-example-basic-multiple form-control" multiple="multiple">
<option value="AL">Alabama</option>
<option value="WY">Wyoming</option>
</select>
</div>
<div class="form-group">
<label for="body">描述</label>
<!-- 编辑器容器 -->
<!-- 非转义可能引起攻击,需要过滤 -->
<script id="container" name="body" type="text/plain" style="height:200px;">
</script>
</div>
<button class="btn btn-success pull-right" type="submit">发布问题</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
(found in <Root>)warncompileToFunctionsVue$3.$mountVue._initVue$3(anonymous function)(anonymous function) @ app-c09a9f3d5d.js:151__webpack_require__ @ app-c09a9f3d5d.js:20(anonymous function) @ app-c09a9f3d5d.js:64(anonymous function) @ app-c09a9f3d5d.js:67
(unknown) Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools