上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 52 下一页
摘要: 播放器在执行了play()方法后立即执行pause()所导致。 解决办法:加定时器 阅读全文
posted @ 2020-10-05 11:01 样子2018 阅读(2699) 评论(0) 推荐(0)
摘要: 一、进入全屏 function launchFullscreen(element) { if (element.requestFullscreen) { element.requestFullscreen(); } else if (element.mozRequestFullScreen) { e 阅读全文
posted @ 2020-10-05 10:32 样子2018 阅读(484) 评论(0) 推荐(0)
摘要: 一、验证radio、checkbox form.verify({ mustradio: function (value, item) { //单选按钮必选 var val = $(item).parent().find("input[name='answer']:checked").val(); i 阅读全文
posted @ 2020-09-26 13:15 样子2018 阅读(782) 评论(0) 推荐(0)
摘要: /* *@通过curl方式获取指定的图片到本地 *@ 完整的图片地址 *@ 要存储的文件名 */ function getImg($url = "", $filename = ""){ //去除URL连接上面可能的引号 $hander = curl_init(); $fp = fopen($file 阅读全文
posted @ 2020-09-22 16:27 样子2018 阅读(797) 评论(0) 推荐(0)
摘要: <input type="number" required oninvalid="this.setCustomValidity('请输入目录等级');" oninput="this.setCustomValidity('')" min="1" name="level[]" class="form-c 阅读全文
posted @ 2020-09-21 09:57 样子2018 阅读(542) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>js加密</title> </head> <body> <script> var str = "alert('hello js')"; eval(jsEncod 阅读全文
posted @ 2020-09-19 10:28 样子2018 阅读(438) 评论(0) 推荐(0)
摘要: 一、App.js //app.js App({ onLaunch: function (options) { console.log(options) }, globalData: { userInfo: null, token: 'Yang' }, //以下为生成签名代码 getSign(url, 阅读全文
posted @ 2020-09-18 11:05 样子2018 阅读(780) 评论(0) 推荐(0)
摘要: 插件:https://underscorejs.net/ 建议:单独创建一个js配置文件存放token,然后加密该文件。 一、前端 underscore-min.js !function(n,r){"object"==typeof exports&&"undefined"!=typeof modul 阅读全文
posted @ 2020-09-18 10:31 样子2018 阅读(680) 评论(0) 推荐(0)
摘要: <div class="init-loading"> <div class="loader"></div> </div> var loading = View.find('.init-loading'); loading.setAttribute('class', 'hide'); @keyfram 阅读全文
posted @ 2020-09-15 14:43 样子2018 阅读(323) 评论(1) 推荐(0)
摘要: /** * 定义动画 */ @keyframes fadeIn{ from{opacity: 0;} to{opacity: 1;} } @keyframes fadeOut{ from{opacity: 1;} to{opacity: 0;} } @keyframes hideToLeft{ fr 阅读全文
posted @ 2020-09-15 14:35 样子2018 阅读(324) 评论(1) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 52 下一页