相关疑难解决方法(0)

错误:模板应仅负责将状态映射到UI.避免在模板中放置带副作用的标签,例如<script>

我正在使用Vuejs,我一直在控制台中收到此警告.此警告也未加载任何数据.我检查了代码中不需要的标签,但没有找到任何标签.

这是因为javascript代码还是我的html中出了问题?

这是我的代码:

HTML

<div class="row">
    <div class="col-sm-12" style="margin-top: 20px;">
        <form class="form-inline" method="GET" action=".">
            <div class="col-sm-3" style="float: right;"><h4>Date:</h4>
                <input class="form-control" style="padding-bottom:0px;" type="text" id="datepicker" readonly="true" name="date" value="2016-06-30">
                <input type="submit" class="btn btn-primary btn-sm" value="Submit" >
            </div>

        </form>
        <div class="col-sm-2" style="float: right; margin-top:40px;">
            <button class="btn btn-info" type="button" id="csv_export">Click to Export</button>
        </div>
    </div>
    <div class="col-sm-12" style="margin:20px;">
        <table class="table table-sm table-striped table-bordered" id="absent-list">
            <thead>
                <tr>
                    <th>#</th>
                    <th style="text-align: center; font-size: 15px;">Full Name</th>
                    <th style="text-align: center; font-size: 15px;">Section</th>
                    <th style="text-align: center; font-size: 15px;">Person Called</th>
                    <th style="text-align: …
Run Code Online (Sandbox Code Playgroud)

javascript django django-templates vue.js

30
推荐指数
5
解决办法
4万
查看次数

标签 统计

django ×1

django-templates ×1

javascript ×1

vue.js ×1