var comm = new Vue({     data () { return { } }, created: function() { if(this.getUrlparameter("key")){ //this.searchkey=this.getUrlparameter("key"); } $.ajaxSetup({ error:function(jqXHR, textStatus, errorThrown) { switch(jqXHR.status) { case(500): diytipshow("err","服务器系统内部错误,请联系管理处理"); break; case(401): diytipshow("err","未登录或登录超时,请登录"); setTimeout(function () { window.location.reload(); }, 2000) break; case(403): diytipshow("err","无权限执行此操作"); break; case(400): diytipshow("err",JSON.parse(jqXHR.responseText).msg); break; case(408): diytipshow("err","请求超时"); break; //default: //diytipshow("err","未知错误"); } }.bind(this) }); }, methods:{ sokey:function(){ }, isArrayCon:function(arr, val){ for(var i=0; i