国开电大 JavaScript程序设计 实训七:实现用户管理功能
XXX: User Management n XXX
Objective:
1.Understand the XXX programs.
2.Master the basic methods of building server programs using Node.js.
3.Understand the XXX.
4.Master the basic methods of writing Ajax programs.
5.Be able to design simple ns using the knowledge learned.
Content:
Design a program that can manage users and implement query。delete。register。and login ns.
Requirements:
1.The user management interface displays user data in a list and provides a delete n。Data is obtained from the database by making an Ajax request to the server-side program.
2.The n interface can save user n to the database by making an Ajax request to the server-side program.
3.XXX when entered.
4.The login n is verified through a database query.
Code XXX:
template>
div class="common-table">
el-table :data="tableData" height="100%" stripe v-loading="config.loading">
el-table>
n class="pager" background layout="prev,pager,next" :total="al" :current-page.sync="config.page" @current-change="changePage">
div>
template>
template>
div class="common-table">
el-table>
el-table-column label="n" >
el-table-column>
el-table>
current-page.sync="config.page" synchronizes the page number of the parent component @current-change="changePage" triggers the event to change the page number and pass the data to the parent component-->
n class="pager" background layout="prev,pager,next" :total="al" :current-page.sync="config.page" @current-change="changePage">
div>
template>
script>
export default {
methods: {
changePage(page) {
code to change the page number
script>
XXX>
template>
div class="manage">
changePage="getList" 接收子组件传递过来的页数 -->
Table :XXX="tableData" :XXX" :config="config" @changePage="getList">如何启用javascript功能
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论