上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 52 下一页
摘要: 一、代码 /** * 暂停执行 * @param ms */ function sleep(ms) { for (var t = Date.now(); Date.now() - t < ms;) } 阅读全文
posted @ 2022-01-06 10:42 样子2018 阅读(599) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <c3p0-config> <default-config> <property name="jdbcUrl">jdbc:mysql://localhost:3306/tpexam?characterEncoding=ut 阅读全文
posted @ 2021-12-27 14:09 样子2018 阅读(638) 评论(0) 推荐(0)
摘要: 一、代码 function getDay(year, month){ var y = new Date(year,month,1,0,0,0); var yd = new Date(y-1000); return yd.getDate(); } 阅读全文
posted @ 2021-12-25 16:53 样子2018 阅读(200) 评论(0) 推荐(0)
摘要: 一、代码 function setQueryString(key, val) { var url = window.location.href.split('?'), search=url[1]; //获取地址栏 "?"后的内容 var query = {}; if (search) { searc 阅读全文
posted @ 2021-12-25 16:18 样子2018 阅读(385) 评论(0) 推荐(0)
摘要: 一、代码 <div class="layui-col-xs3" style="text-align: right;"> <button type="button" id="send-sms-btn" class="layui-btn" onclick="sendSms()">发送</button> 阅读全文
posted @ 2021-12-08 14:25 样子2018 阅读(280) 评论(0) 推荐(0)
摘要: 一、方式一 1、代码 (function () { 'use strict' var devtools = { open: false, orientation: null } var threshold = 160 var emitEvent = function (state, orientat 阅读全文
posted @ 2021-12-08 13:09 样子2018 阅读(469) 评论(0) 推荐(0)
摘要: 在vue项目根目录下创建vue.config.js文件,如果不是在网站根目录下,设置publicPath。 module.exports = { publicPath: './', assetsDir: 'static', outputDir: 'dist' } 阅读全文
posted @ 2021-11-19 10:30 样子2018 阅读(398) 评论(0) 推荐(0)
摘要: npm install vue-router --save npm install vue-resource --save npm install vuex --save 一、代码 import Vue from 'vue' import App from './App.vue' import Vu 阅读全文
posted @ 2021-11-13 11:20 样子2018 阅读(69) 评论(0) 推荐(0)
摘要: /** * 判断是否是手机 * @return bool */ function is_mobile() { $agent = strtolower($_SERVER['HTTP_USER_AGENT']); $is_pc = (strpos($agent, 'windows nt')) ? tru 阅读全文
posted @ 2021-11-11 10:30 样子2018 阅读(277) 评论(0) 推荐(0)
摘要: 一、效果图 阅读全文
posted @ 2021-09-27 10:55 样子2018 阅读(818) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 52 下一页