function toThousands(num) { var result = [ ], counter = 0; num = (num || 0).toString().split(''); for (var i = n
1、建一个export.js import dateTime from "@/utils/dateTime.js"; //封装当前时间组件 import { Message } from 'element-ui&
方法一: numFun(startNum, maxNum, num, name) { var that = this let numText = startNum; let golb; // 为了清除requestAnimationFram
1、定义Loading import { Loading} from 'element-ui'; let loading = null; 2、请求之前拦截中启动loading axios.interceptors.reque
html代码就不写了,直接上script中的代码 export default { data() { return { countdown:"", timer: null, } }, methods: { getMobi
import axios from 'axios' import qs from 'qs'; import { MessageBox, Message } from 'el
function sendAjax(url, param, datat, callback) { $.ajax({ type: "post&quo
1、封装ajax function ajax(url, param, type) { return $.ajax({ url: