09 2020 档案
摘要:一、验证radio、checkbox form.verify({ mustradio: function (value, item) { //单选按钮必选 var val = $(item).parent().find("input[name='answer']:checked").val(); i
阅读全文
摘要:方式一 config('database.prefix')
阅读全文
摘要:/* *@通过curl方式获取指定的图片到本地 *@ 完整的图片地址 *@ 要存储的文件名 */ function getImg($url = "", $filename = ""){ //去除URL连接上面可能的引号 $hander = curl_init(); $fp = fopen($file
阅读全文
摘要:<input type="number" required oninvalid="this.setCustomValidity('请输入目录等级');" oninput="this.setCustomValidity('')" min="1" name="level[]" class="form-c
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>js加密</title> </head> <body> <script> var str = "alert('hello js')"; eval(jsEncod
阅读全文
摘要:一、App.js //app.js App({ onLaunch: function (options) { console.log(options) }, globalData: { userInfo: null, token: 'Yang' }, //以下为生成签名代码 getSign(url,
阅读全文
摘要:插件:https://underscorejs.net/ 建议:单独创建一个js配置文件存放token,然后加密该文件。 一、前端 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>接口验签</title> <
阅读全文
摘要:<div class="init-loading"> <div class="loader"></div> </div> var loading = View.find('.init-loading'); loading.setAttribute('class', 'hide'); @keyfram
阅读全文
摘要:/** * 定义动画 */ @keyframes fadeIn{ from{opacity: 0;} to{opacity: 1;} } @keyframes fadeOut{ from{opacity: 1;} to{opacity: 0;} } @keyframes hideToLeft{ fr
阅读全文
摘要:一、常用API 1、View static currentState static context 公用数据存取上下文,用于跨视图存取数据。 static checkIfBrowserHistorySupportsPushPopAction() static getViewContainerDomE
阅读全文
摘要:一、View.js 官网:http://view-js.com/ 二、Vue.js 官网:https://cn.vuejs.org/
阅读全文
摘要:一、banner广告 <ad unit-id="adunit-6522d0488e5925c3"></ad> 二、插屏广告 // 在页面中定义插屏广告 let interstitialAd = null // 在页面onLoad回调事件中创建插屏广告实例 if (wx.createInterstit
阅读全文