自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 前端星——小程序/点播/代码规范

小程序技术栈HTML/CSS/JavaScriptNodeJS移动适配HTTP协议/HTTPSOAuth2GIT文件结构.json后缀的JSON配置文件(数据驱动).wxml后缀的WXML模板文件.wxss后缀的WXSS样式文件(rpx单位,精简css,全局和局部css).js后缀的JS脚本逻辑文件双线程模型同构框架:uni-app, Taro,KBone...

2020-04-12 22:55:01 241

原创 前端星——前端工程化/性能优化

前端工程化指导原则规范化 / 模块化 / 组件化 / 自动化规范化版本管理(git)及开发流程规范编写规范(脚本/样式/目录结构)模块化CSS模块化(通过样式生效规则来避免冲突)DOM节点添加data-v-version属性以脚本模块来写样式,甚至有封装好的样式模块可直接调用优雅地使用BEM为元素建立shadow root,内部样式与外部样式完全隔离JS模块...

2020-04-11 23:03:19 296

原创 前端星——正则、Node.js

正则正则表达式的创建和使用字面量法创建const reg = /[a-z]\d+[a-z]/i; 使用RegExp构造函数创建 注意二次转义!const alphabet = '[a-z]';const reg = new RegExp(`${alphabet}\\d+${alphabet}`, 'i');用法正则与数值正则与颜色正则与URL...

2020-04-10 22:57:29 161

原创 前端星——JavaScript / Web标准 / HTTP

JavaScript各司其职:JavaScript只做状态管理插件/模板化/抽象如何实现轮播图图片结构是一个列表型结构,所以主体用ul标签;使用css绝对定位将图片重叠在同一个位置;轮播图切换的状态使用修饰符(modifier);轮播图的切换动画使用 css transition。-. 优化1:采用依赖注入降低代码的耦合度-. 优化2:改进插件/模板化this.contain...

2020-04-09 23:01:30 177

原创 Angular项目部署过程中的错误

ng build后提示Data path “.builders[‘app-shell’]” should have required property ‘class’.Schema validation failed with the following errors: Data path ".builders['app-shell']" should have required pro...

2020-02-29 10:39:02 3186

原创 [leetcode]690. Employee Importance三种解法及性能分析

You are given a data structure of employee information, which includes the employee’s unique id, his importance value and his direct subordinates’ id.For example, employee 1 is the leader of employe...

2019-11-21 11:32:12 254

原创 [leetcode]日期问题

1154. Day of the YearGiven a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day number of the year.Example 1:Input: date = “2019-01-09”Output: 9Explanat...

2019-09-08 16:36:09 848

原创 详解前端项目在阿里云服务器上的部署过程

项目上线需要部署到阿里云服务器上,由于刚刚申请的阿里云服务器没有项目环境,因此需要进行环境配置和项目部署。在这个过程中也踩到了几个坑,因此记下来供大家参考。创建用户参考链接:Ubuntu16.04系统中创建新用户切换为root用户以获取创建用户的权限$ sudo su添加新用户(在本文中用户名为hellocrease)$ adduser hellocrease根据系统提示...

2019-08-31 17:53:19 3912

原创 PM2托管工具使用详解

参考 pm2从入门到精通服务器上的项目需要保持稳定,即使发生故障项目也要自动重启以提供服务,这时需要托管工具对我们的项目进行托管。PM2正是这样一款工具,可以利用它来简化很多node应用管理的繁琐任务,如性能监控、自动重启、负载均衡等,而且使用非常简单。安装pm2$ npm install -g pm2启动应用$ pm2 start app.js (--watch) # 加上wa...

2019-08-31 17:45:02 583

原创 ubuntu 16.04安装node和npm的方法详解(npm官网推荐)

安装node和npm是前端开发必备的环节,但在这一环节上潜藏一些坑,稍有不慎可能会造成环境配置问题。网上的方法林林总总,纷繁复杂,但其实npm官网上已经给出了最佳的安装方式:Downloading and installing Node.js and npmTo publish and install packages to and from the public npm registry...

2019-08-31 17:29:04 2063

原创 [leetcode] 884. Uncommon Words from Two Sentences

We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.)A word is uncommon if it appears exactly once in one of the sent...

2019-05-17 17:35:35 131

原创 [leetcode]766. Toeplitz Matrix

A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.Now given an M x N matrix, return True if and only if the matrix is Toeplitz.Example 1:Input:matrix = [...

2019-04-25 17:35:33 156

原创 [leetcode] 206. Reverse Linked List

Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be reversed either iteratively or recursively....

2019-03-20 11:52:12 119

原创 在Visual Studio 2017下实现动态库加载

在开发与测试中,有时需要加载不同的库,如果每次修改源程序就会非常麻烦,但如果指定库函数进行动态加载,则可以不用修改代码就能实现不同库函数的功能。以下是我在Visual Studio 2017环境下实现的动态库加载实验。本文参考例程:https://blog.csdn.net/qq_28249373/article/details/76098914首先我们需要建立DLL工程,生成自己的动态链...

2018-07-30 17:54:05 3389

原创 google gflags库在Windows+Visual Studio2017环境下的安装与使用

之前在编写一个具体的程序时,需要通过命令行方式运行,根据输入的参数来决定具体的功能。对argv解析很麻烦,因此使用了google的gflags库,该工具可以方便地实现对于命令行参数的解析。gflags官方的功能介绍  How To Use gflags (formerly Google Commandline Flags)下载gflags的源码:gflags clone得到的gflags-m...

2018-07-17 17:18:35 3941 3

空空如也

空空如也

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

TA关注的人

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