js
骑蜗牛de刘皇shu
这个作者很懒,什么都没留下…
展开
-
微信、支付宝小程序通过页面劫持,变更生命周期、权限验证、埋点及挂载通用方法
useGlobalState.jsconst STORAGE_PREFIX = 'USE_GLOBAL_STATE_';const storageData = {};/** * 对state进行格式化 * @param {*} storage */function initStorageData(storage) { const { keys = [] } = storage || {}; const now = new Date().getTime(); for (let原创 2021-05-25 16:34:35 · 2160 阅读 · 0 评论 -
jQuery ajax请求的 几种 格式
var subData={ name:'张三' }$.ajax({ url : "IndexController/getIndexImages.html", type : "POST", async : true,//表示进行异步获取 data:subData,//提交的数据 dataT...原创 2018-09-11 11:31:39 · 1647 阅读 · 0 评论 -
js 判断数据是否为空
/** * 判断为空 */function checkDataNull(checkData) { if (checkData != '' && checkData != undefined && checkData != null && checkData != NaN) { return true; } return f...原创 2018-09-11 11:08:56 · 1507 阅读 · 0 评论 -
vue和jQuery,实现简单的图片上传
css样式 .upload-img-box { display: flex; flex-wrap: wrap; } .upload-img-box .upload-img-entity { width: 100px; min-width: 100px...原创 2019-05-16 11:31:38 · 303 阅读 · 0 评论