html换行代码 html文本框代码

【html换行代码 html文本框代码】Html文本框代码(html换行代码)
今天继续给大家分享Element UI多框组的使用注意事项,直接上代码!
1、HTML
2、JSvar vue = new Vue({data: {paramData: {userId: "",userName: ""},userList: []},created: function() {var self = this;self.initUser("");},mounted: function() {},methods: {},methods: {initUser: function(userName) {var self = this;var queryParam = {};$.ajax({url: xxx,contentType: 'application/json',data: JSON.stringify(queryParam),success: function(resultData) {if (resultData.success) {self.userList = result.data;} else {self.userList = [];}}});},handleSelect: function(item) {var self = this;self.paramData.userName = item.value;self.paramData.userId = item.id;self.onSearch();},querySearch: function(queryString, cb) {var self = this;var queryParam = {};$.ajax({url: xxx,contentType: 'application/json',data: JSON.stringify(queryParam),success: function(resultData) {if (resultData.success) {cb(result.data);} else {cb([]);}}});},clearUser: function() {var self = this;self.paramData.userName = "";self.paramData.userId = "";//重新加载数据列表}}});
以上是分享的内容,感谢阅读 , 欢迎收藏、点赞和转发 。你的支持是我最大的创作动力 。有问题可以留言,一起进步!

    推荐阅读