摘要: 很多同学可能在写h5的时候,也会遇到移动端如何控制屏幕自适应问题!在移动端网页开发中,我们可以用手机淘宝的flexible.那么在vue当中,也同样可以用!接下来就介绍下如何在vue-cli配置的项目里来实现屏幕自适应首先,我们需要安装flexible库.npm i lib-flexible --s 阅读全文
posted @ 2017-11-12 22:46 编程让我快乐 阅读(24525) 评论(3) 推荐(1) 编辑
摘要: 今天有时间讲讲我对面向对象的理解跟看法,尽量用通俗的语言来表达,多多指教! 如今前端开发已经越来越火了,对于前端开发的要求也是越来越高了,在面试中,经常有面试官会问:你对JS面向对象熟悉吗? 其实,也就是相当于在问你,在工作中有没有用过面向对象开发?说到这里,有人就问了,什么事面向对象? 面向对象: 阅读全文
posted @ 2018-06-30 18:45 编程让我快乐 阅读(7877) 评论(3) 推荐(1) 编辑
摘要: 不管是APP还是移动端网页开发,轮播图在大部分项目当中都是存在的,这时候如果用vue开发项目,选择一款好的插件并且封装好是很重要的 1. 推荐使用vue-awesome-swiper 安装:cnpm install vue-awesome-swiper --save 2. 在main.js文件中引入 阅读全文
posted @ 2018-06-16 16:13 编程让我快乐 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 1.安装node-sass,因为scss是基于此库的 cnpm install --save-dev node-sass 2.安装sass-loader cnpm install --save-dev sass-loader 全部安装完成之后,到webpack.base.conf.js的编译规则里添 阅读全文
posted @ 2018-06-16 15:29 编程让我快乐 阅读(1154) 评论(0) 推荐(0) 编辑
摘要: yum install wget yum install gcc-c++ yum -y install pcre prec-devel yum -y install zlib zlib-devel yum install -y openssl openssl-devel wget -c https: 阅读全文
posted @ 2018-06-14 17:48 编程让我快乐 阅读(115) 评论(0) 推荐(0) 编辑
摘要: util是nodejs的一大核心模块,用来提供常用函数的集合 1.util.inherits(实现对象原型继承) 概要:js的继承是基于原型的,本身并没有继承的语言特性,仅仅是通过复制原型的方式来实现继承对象。 一、首先在nodejs的环境里引入util模块 const util = require 阅读全文
posted @ 2018-06-09 15:48 编程让我快乐 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: 1. CSS在开发模式中用import,在打包后用CDN min.js中做如下操作 if (process.env.NODE_ENV == 'development') { require('../xxx.css'); } index.html中引入相应UI的CDN 2. 减少vendor.js的体 阅读全文
posted @ 2018-06-07 19:56 编程让我快乐 阅读(2282) 评论(0) 推荐(0) 编辑
摘要: UPDATE user SET `Host` = '%' WHERE `User` = 'root' LIMIT 1; 讲root账户,的HOST设置为%,允许所有公网IP访问。 flush privileges; 刷新权限 grant all privileges on *.* to 'root' 阅读全文
posted @ 2018-05-28 17:49 编程让我快乐 阅读(351) 评论(0) 推荐(0) 编辑
摘要: firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --reload 阅读全文
posted @ 2018-05-28 17:06 编程让我快乐 阅读(387) 评论(0) 推荐(0) 编辑
摘要: yum install firewalld systemctl stop iptables; systemctl mask iptables; systemctl unmask firewalld systemctl start firewalld systemctl status firewall 阅读全文
posted @ 2018-05-28 15:47 编程让我快乐 阅读(176) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/pythonal/p/6141516.html 1.默认linux是有自己的数据库分支的,我们要现将其删除,不然会有冲突 运行: rpm -qa | grep mariadb 查看有哪些分支 运行: rpm -e --nodeps mariadb-li 阅读全文
posted @ 2018-05-28 14:45 编程让我快乐 阅读(449) 评论(0) 推荐(0) 编辑