自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 js中在html中有onload事件和脚本中的onalod事件冲突解决

//初始化加载 function fn(){ getlifeType(); var types = document.getElementById("fenlei3") types.style.display = "none" } if (document.all) { console.log(document.all) window.attachEvent('onload', fn) } else { window.addEventLis

2020-12-16 16:53:27 110

原创 公共样式库

@font-face { font-family: uniicons; font-weight: normal; font-style: normal; src: url('~@/static/uni.ttf') format('truetype');}/*通用 */view { font-size: 28upx; line-height: 1.8;}progress,checkbox-group { width: 100%;}form { width: 100%;

2020-12-08 14:27:11 324

原创 uibase库

/*强调色*/body { --primary: #007bff; --info: #17a2b8; --success: #28a745; --danger: #dc3545; --warning: #ffc107; --white: #fff; --black: #000;}page{ padding-bottom: 80upx; box-sizing: border-box;}.box { width: 100%; margin: auto;}.border

2020-12-08 14:25:56 194

原创 md5加密

/* * JavaScript MD5 * https://github.com/blueimp/JavaScript-MD5 * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * https://opensource.org/licenses/MIT * * Based on * A JavaScript implementation of th

2020-12-08 14:22:28 104

原创 公共JS

import $http from './request'// 时间戳转日期function timestampToTime(timestamp) { var date = new Date(timestamp*1000); //10位*1000 var Y = date.getFullYear() + '-'; var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-'; var

2020-12-08 14:17:13 328

原创 封装uni.request

export default { //封装uni.request(): request(options) { return new Promise((resolve, reject) => { //书写异步操作的代码 uni.request({ ...options, success: res => { // console.log('***********',res) if (options.native) { resolve

2020-12-08 13:55:15 56

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除