Web秀
首页
专栏
文章
问答
热点
导航
实例
文章
登录
首页
前端
JavaScript
Vue.js
CSS
Uni-App
专栏
问答
工具
全网热点
导航
前端
设计
实例
登录
综合
Uni-App
Webpack
React
Html
Electron-Vue
Electron
Vue-Nuxt
TypeScript
NodeJs
web前端
Vue
Css
JavaScript
比特币
ThreeJs
工具类
面试
服务器
小程序
其他
展开
推荐
最新
热榜
冴羽
Lv0
理想主义者,个人微信:mqyqingfeng ,带你看技术与生活的诗与远方
0
关注
0
关注者
关注
冴羽
2年前
JavaScript
JavaScript专题之学underscore在数组中查找指定元素
JavaScript专题系列第十篇,讲解如何从数组中查找指定元素,并且跟着undersocre实现findIndex和findLastIndex、sortedIndex、indexOf和lastIndexOf前言在开发中,我们经常会遇到在数组中查找指定元素的需求,可能大家觉得这个需求过于简单,然而如何优雅的去实现一个findIndex和findLastIndex、indexOf和lastIndexOf方法却是很少人去思考的。本文就带着大家一起参考着underscore去实现这些方法。在实现前,先看看ES6
545559
3269
0
冴羽
Lv0
理想主义者,个人微信:mqyqingfeng ,带你看技术与生活的诗与远方
0
关注
0
关注者
关注
冴羽
2年前
JavaScript
JavaScript 专题之如何求数组的最大值和最小值
JavaScritpt专题系列第八篇,讲解多种方式求数组的最大值和最小值前言取出数组中的最大值或者最小值是开发中常见的需求,但你能想出几种方法来实现这个需求呢?Math.maxJavaScript提供了Math.max函数返回一组数中的最大值,用法是:Math.max([value1[,value2,...]])复制代码值得注意的是:如果有任一参数不能被转换为数值,则结果为NaN。max是Math的静态方法,所以应该像这样使用:Math.max(),而不是作为Math实例的方法(简单的来说,就是不使用ne
546909
3246
0
chokcoco
Lv0
iCSS前端趣闻
0
关注
0
关注者
关注
chokcoco
2年前
Html
单标签实现复杂的棋盘布局
最近,有群友问我,他们的一个作业,尽量使用少的标签去实现这样一个象棋布局:他用了60多个标签,而他的同学,只用了6个,问我有没有办法尽可能的做到利用更少的标签去完成这个布局效果。其实,对于一个页面的布局而言,标签越少不一定是好事,我们在考虑DOM的消耗的同时,也需要关注代码的可读性,以及后续基于这个布局的制作的交互的难易性等等。当然,仅仅从用更少的标签完成这个布局的角度而言,我们能够把标签数压缩到多少呢个?(不考虑<body>和<html>)答案是1个。本文就尝试使用一个标签完成这
546423
3396
0
Javan
Lv6
专注于前端知识分享
0
关注
0
关注者
关注
Javan
3年前
服务器
Vue、Node等Gitee项目基于WebHooks自动化部署到服务器
Vue、Node等Gitee项目自动化部署到服务器快速开始#拉取代码到服务器gitclonehttps://gitee.com/javanx/webhook.git#cdwebhookcdwebhook#安装依赖$npminstall#pm2启动服务$pm2startwebhook.js--namewebhook-e./logs/error.log-o./logs/out.log当然,还需要你根据自己的项目对响应配置做出修改,详情看下方细节描述Gitee添加WebHooks进入到项目->管理->WebHo
545091
3356
0
Javan
Lv6
专注于前端知识分享
0
关注
0
关注者
关注
Javan
2年前
React
说说你在使用React 过程中遇到的常见问题?如何解决?
#面试官:说说你在使用React过程中遇到的常见问题?如何解决?#一、前言在使用react开发项目过程中,每个人或多或少都会遇到一些"奇怪"的问题,本质上都是我们对其理解的不够透彻react系列,33个工作日,33次凌晨还在亮起的台灯,到今天就圆满画上句号了,比心在系列中我们列出了很多比较经典的考题,工作中遇到的问题也往往就藏中其中,只是以不同的表现形式存在罢了今天的题解不算题解,准确来说是对整个系列的一次贯穿,总结目录:react有什么特性生命周期有哪些不同阶段?每个阶段对应的方法是?state和pro
547219
3281
0
Javan
Lv6
专注于前端知识分享
0
关注
0
关注者
关注
Javan
4年前
Uni-App
UniApp自定义启动界面(splash)配置说明
早期使用UniApp的开发者们,应该都知道,uniapp打包后,加载会出现一个启动界面,是一朵菊花,转呀转,非常的不美观,而且不能自定义。也是向uniapp的创造者们反馈多次,今年终于迎来了改进,可以自定义uniapp启动界面了,但是还不能完完全全自定义。目前可以android可以配置图片,而ios使用storyboard可以完全自定义了。自定义uniapp启动界面,这是一个新的里程碑。App启动时,因为应用自动需要一定时间,为了避免用户等待白屏,手机OS提供了特殊的启动界面设计,让用户先看到一个简单的界
560472
3292
0
zxg_神说要有光
Lv0
公号「神光的编程秘籍」
0
关注
0
关注者
关注
zxg_神说要有光
2年前
Webpack
从前端编译到手写 Babel
编译这个概念好像离前端很遥远,遥远到好像工作面试都不要求相关的知识。但是,真的遥远么?我们每天用Babel、TypescriptCompiler来做代码的转换,用VueTemplateCompiler来做Vue模版的解析,还会用Eslint做代码的静态检查、用Terser做代码压缩,最重要的是我们的JS代码是跑在JS引擎上的。这些不都是编译技术么?现在,你还觉得编译离前端很遥远么?其实,并不是编译技术在前端用不到,而恰恰是因为太过常用而容易被忽略。我们会去学习一些工具的使用,但不会去学习更底层的一些原理。
545928
3255
0
Javan
Lv6
专注于前端知识分享
0
关注
0
关注者
关注
Javan
6年前
小程序
mpvue小程序框架的优缺点
前言从最开始学习小程序到开发,也有小半年了吧,从wepy到mpvue,都踩过很多坑,也发过三篇文章了,今天来说说mpvue的坑在哪儿,希望你接下来的路好走。下面是之前的文章:mpvue小程序架构搭建详细介绍mpvue小程序单个页面添加config配置[设置标题、下拉刷新、颜色等]亲身体验小程序wepy和mpvue框架的区别缺点slot问题大家先看看git上面关于slot的问题有多少,可以说很多。也是我觉得最头疼的问题,组件封装不了了,就算写的感觉只要有动态数据的,意义都不大,因为基本不能复用。slot,居
562538
3734
0
Javan
Lv6
专注于前端知识分享
0
关注
0
关注者
关注
Javan
5年前
Uni-App
UniApp实战:动态数据(uni.request封装、uni.getLocation获取定位等)
通过本章节你能学到那些?1、Uni-AppAPI调用(网络请求、获取位置等)2、获取高德开放平台API-天气查询3、Uni-App引用npm第三方库4、Uni-App+Vuex数据持久化下面我们来具体看看Uni-AppAPI调用(网络请求、获取位置等)一、uni.request封装成Promiseuni.request(OBJECT)OBJECT对象描述:1、根目录下新建commons/http.js文件2、封装uni.request()有人肯定会问,人家uni.request()已经挺好的了,为什么非的
579493
3768
0
冴羽
Lv0
理想主义者,个人微信:mqyqingfeng ,带你看技术与生活的诗与远方
0
关注
0
关注者
关注
冴羽
2年前
TypeScript
TypeScript 之映射类型
TypeScript的官方文档早已更新,但我能找到的中文文档都还停留在比较老的版本。所以对其中新增以及修订较多的一些章节进行了翻译整理。本篇翻译整理自TypeScriptHandbook中「MappedTypes」章节。本文并不严格按照原文翻译,对部分内容也做了解释补充。映射类型(MappedTypes)有的时候,一个类型需要基于另外一个类型,但是你又不想拷贝一份,这个时候可以考虑使用映射类型。映射类型建立在索引签名的语法上,我们先回顾下索引签名://当你需要提前声明属性的类型时typeOnlyBools
546880
3345
0
下拉加载更多
您好
去签到
你已经连续签到
0
天
猜你喜欢
换一换
最新文章
更多