自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 post 上传文件

<template> <div style="line-height:12px"> <el-upload class="avatar-uploader" v-bind='$attrs' :action="'/wsj'" :before-upload="fileUpload" accept=".jpeg,.png,.jpg" :show-file-list="false" v-load

2022-03-09 10:09:35 1531 1

原创 2021-09-02

h5在微信中的问题微信打开app按钮wx-open-launch-app,在ios中不显示问题// 因为js在ios中加载不到 <script> // 在ios环境下需要动态加载才可以加载成功 const oScript = document.createElement('script') oScript.type = 'text/javascript' oScript.src = 'https://res2.wx.qq.com/open/js/jweixin-1.6.

2021-09-02 19:51:28 96

原创 H5被app调用实践

H5被app调用实践tabTitle导航不使用app的,使用h5自己返回按钮问题安卓手机下,从第一页跳转到第二页,第二页的路由back()调用不成功原因第一页没有计入history中解决方案在页面加载完毕后if (window.history.length == 0) { window.history.pushState({}, '', "首页路由"); }h5给app发消息Navigator可以是其他名字,又app定Navigator.postMessage('需要传递的参

2021-04-29 17:51:03 186

原创 积累

将一个对象中的某些字段用‘-’拼接字符串/** 原始对象 */const viewRange = { ownPDeptName: 111, ownDeptName: 222, ownRoleName: 333, other: 'other'}/** 需要拼接的字段 */const needProp = ['ownPDeptName', 'ownDeptName', 'ownRoleName']function splitItem (props, obj) { return props

2020-06-04 17:18:42 122

原创 2020面试积累

promise、async和await之执行顺序的那点事基础数据类型 && 判断数据类型方法let const var区别get 和 post 的区别生动形象解释forEach、filter、map、some、every、find、findIndex、reduce间的区别详解箭头函数和普通函数的区别以及箭头函数的注意事项、不适用场景对象深浅拷贝(手写)数组去重p...

2020-04-13 10:06:13 212 1

原创 微信小程序

微信小程序开发流程开发规范兼容问题 & 解决方案发布审核流程 & 经常遇到的问题 & 解决方案常见的问题 & 解决方案项目结构划分组件优化相关优化相关减少频繁调用setData避免每次 setData 都传递大量新数据不用于页面渲染的变量不要在data里面声明事件绑定的时候,不要传一堆参数,只传id,其余通过js查询控制保存在本地的...

2020-01-17 17:33:32 142

原创 filter 和 map 做比较

高阶函数做比较filterlet a = [1,2,3];let b = a.filter((item)=>{item = item*2return item > 4;});console.log(‘bbbbb’,b,a); => b = [3], a = [1, 2, 3]maplet a = [1,2,3];let b = a.filter((i...

2019-07-09 11:48:54 576 2

原创 vuex的store结构

方案一 参考vuex官网storeindexmoduleschat.js 代码示例products.js不建议使用,每个文件可能会很大方案二 参考文章storeindexmoduleschat 示例actions.jsgetters.jsmutations.jsindex.jsproductsactions.jsgetters.js...

2019-01-28 23:00:47 451

原创 事件

绑到window上的事件一定要注意删除

2019-01-25 16:55:54 97

原创 fixed 遇到 transform

fixed 遇到 transform就失效代码&amp;lt;div class=&quot;box&quot;&amp;gt; 我用了transform &amp;lt;div class=&quot;content&quot;&amp;gt;我是fixed&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;style&

2019-01-25 16:50:42 995

原创 浏览css兼容

文字两端对齐 text-align:justifyIE下的使用: text-justify:distribute-all-lines;

2019-01-25 16:32:18 109

原创 图片视频自适应大小

// html&lt;div class="box"&gt; &lt;img src= "" /&gt;&lt;/div&gt;// style.box { display: flex; justify-center: center; align-items: center}.box img { display: block; max-width: 100%; max-...

2018-12-26 14:27:07 561

原创 图片适配容器大小

/** @params {imgBox} Number 图片容器的dom @params {thisImg} Number 图片的dom */ changeImage(imgBox, thisImg, url) { var maxWidth = imgBox.clientWidth var maxHeight = imgBox.clie...

2018-12-26 13:09:47 391

原创 面试总结

、、、let a = [1, 2 ,3]let b = a;b[2] = 9问:让b改变,a改变答案: 深拷贝、、、v-if v-show 区别v-if 直接操作dom节点是否在dom树中,v-show控制css的display属性兄弟组件间通信vuex;2.bus总线;3.$emit传递;缓存有几种以及区别localStore,cookie,session。loc...

2018-10-29 18:57:06 441

原创 2018面试

angularjs面试问题factory、service、provide之间工作原理数据双向绑定的原理vue面试题数据双向绑定的原理vuex设计的初衷。解决的什么问题就算是算法题判断是否是回文字符串get_elment_english =&amp;gt; getElmentEnglish数组去重...

2018-09-20 20:38:26 374

原创 格式化时间相关函数

20180903 -&gt; 2018-09-03function formatStr(str,type){ let i = 0,_type = type || "xxxx-xx-xx xx:xx:xx"; return _type .replace(/x/g, () =&gt; { return str[i++]})}阿拉伯 转 中文 101 -&gt; 一百...

2018-08-01 11:38:45 169

原创 检测浏览器flash是否安装

function flashChecker() { var hasFlash = 0; //是否安装了flash var flashVersion = 0; //flash版本 if (document.all) { var swf = new ActiveXObject('ShockwaveFlash.Shockwav...

2018-07-31 17:25:18 1513

原创 甘南 旅游攻略

拉卜楞寺简介 拉卜楞寺为藏传佛教格鲁派的六大寺之一,是全世界最有名的藏密学院,拥有中国最完整的藏传佛教教学体系。寺院规模宏大,这里有恢宏的寺院建筑群,供奉着无数巨大佛像和各种精美的雕塑、壁画、法器等。拉卜楞寺超长的转经长廊也是全世界罕见的,共2000余个转经筒,转遍每个转经筒至少需一个小时。在拉卜楞寺西南角有一座古老的木桥,横跨夏河,过桥上山,站在晒佛台上能将拉卜楞寺的全景尽收眼底注意 ...

2018-07-30 15:36:39 819

转载 angular 路由状态管理

http://bubkoo.com/2014/01/02/angular/ui-router/guide/url-routing/

2017-11-27 19:26:24 875

原创 js中“+”用法

https://www.w3cplus.com/javascript/javascriptss-addition-operator-demystified.html

2017-08-04 10:35:08 1244

原创 代码规范

http://alloyteam.github.io/CodeGuide/

2017-08-03 10:15:04 196

转载 flv 播放直播视频

flv播放直播视频https://github.com/gwuhaolin/blog/issues/3

2017-06-10 12:28:48 2691

转载 video

http://tanglilidegh.github.io/geekSalon/videojs-HTML5.html

2017-06-01 09:15:23 270

原创 switch-btn

/*选择开关盒子*/  .el-switch {    display: inline-block;    position: relative;    font-size: 14px;    line-height: 22px;    height: 22px;    vertical-align: middle  }  /*选择开关盒子 输入框*/  .

2017-05-23 14:36:10 708

原创 收藏的组件

倒计时http://tutorialzine.com/2011/12/countdown-jquery/

2017-05-05 10:04:06 262

转载 angular derective

angular derectivehttps://my.oschina.net/duanyunhu/blog/501704

2017-05-04 14:34:43 373

转载 收藏的链接

.github 基本操作https://zhuanlan.zhihu.com/p/24461753angular validation 插件https://huei90.github.io/angular-validation/angularjs的事件 broadcast and emit and onhttp://www.angularjs.cn/A08c

2017-01-23 12:19:28 281

原创 常用css

/*取消chrome默认的黄色背景*/input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px white inset !important;}/*密码的大小和字体有关*/input[type="password"] { font: large Verdana,sans-serif; letter-spacing: 1

2017-01-23 12:02:55 197

原创 angular 阻止事件冒泡

if($event.stopPropagation) $event.stopPropagation();if($event.preventDefult) $event.preventDefult();$event.cancelBubble = true;$event,.teturnValue = false;

2017-01-23 11:55:23 786

空空如也

空空如也

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

TA关注的人

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