- vue移动端适配postcss-px-to-viewport
我是七月
在之前有一种流行已久的移动端适配方案,那就是rem,我想下面这两句代码,有不少老移动端都不会陌生:constdeviceWidth=document.documentElement.clientWidth||document.body.clientWidth;document.querySelector('html').style.fontSize=deviceWidth/7.5+'px';没错,
- vue移动端适配(px转vw)postcss-px-to-viewport配置 安装postcss-px-to-viewport
如饥似渴的人
npminstallpostcss-px-to-viewport//postcss.config.js文件module.exports={plugins:{'postcss-px-to-viewport':{unitToConvert:'px',//需要转换的单位,默认为"px"viewportWidth:375,//视窗的宽度,对应的是我们设计稿的宽度viewportHeight:1334,//
- vue移动端适配问题
雨后晴阳
以前只知道移动端适配用rem,最近看到了一篇博客发现可以借助amfe-flexible插件在打包的时候将px改为rem,不过前提是ui设计是750*1334博客地址https://blog.csdn.net/weixin_43295397/article/details/82895116
- react、vue移动端项目使用技术
崽崽的谷雨
React前端react.jsvue.js前端
前言:现在移动端项目越来越多,h5项目需求量也很大。所以有必要总结一下,h5移动段使用到的技术。一般h5可以在微信、内嵌app(webview)、小程序(webview)等等只要有浏览器环境都能运行。react、vue移动端使用到的技术:一、px2rem插件h5移动端首先需要做到适配各种手机屏幕,所以使用的单位肯定是相对单位。比如:rem原理就是rem是相对单位,给html加个基准值,然后其后代元
- vue移动端提交用户留言信息
冰淇wbq
屏幕快照2018-09-0909.53.38.png{{askData.nickname}}{{Date.format("yyyy-MM-ddhh:mm",askData.create_time*1000)}}问{{askData.title}}-->-->-->-->-->{{commentData}}1">{{commentData}}{{isInit?praiseCount:askData.
- vue移动端项目中使用postcss-pxtorem进行适配方案
趁着年轻吃点苦
vue.jscss
首先,我们先使用vue-cli创建一个初始化的vue项目。vuecreatehello-world当项目创建好以后,我们在根目录下新建一个vue.config.js,想必大家也都懂这个文件是干什么的。既然是使用postcss-pxtorem对移动端项目进行适配,那肯定先要安装它,于是我们在电脑上敲下这行命令npminstallpostcss-pxtorem-Dpostcss-pxtorem有一个好
- Vue移动端rotate强制横屏
lMoonRed
前端vue.js
强制横屏#screen{position:fixed;width:100%;height:100%;padding:0;margin:0;background-color:rgb(228,180,180);overflow:hidden}@mediascreenand(orientation:portrait){/*竖屏*/#main{position:absolute;width:100vh;h
- 计算机毕业设计 | SpringBoot+vue移动端音乐网站 音乐播放器(附源码)
说书客啊
前后端分离源码分享课程设计springboot毕业设计javavueintellijidea后端
1,项目背景随着计算机技术的发展,网络技术对我们生活和工作显得越来越重要,特别是现在信息高度发达的今天,人们对最新信息的需求和发布迫切的需要及时性。为了满足不同人们对网络需求,各种特色,各种主题的网站也在不断增加。为了满足音乐爱好者,明星崇拜者,各种专辑痴迷着的需求,一批以音乐为主题的网站也应运而生。由于以往的静态网页存在单调,维护任务大,缺乏和用户的交互,随着计算机软件知识的推广,动态网页正在走
- vue移动端实现模糊搜索关键字高亮效果
人生的旅行
搜索的关键词变高亮1.使用v-html指令绑定属性2.使用正则3.用正则替换关键字话不多说直接上代码html.pngjs.png效果图效果图.png
- 常用的几款Vue移动端UI推荐
草率小猿
vue前端vue.jsui前端
收录几个常用的移动端UI框架,不定时更新。1.Ionic/IonicFramework官网地址|Github地址AnopensourcemobileUItoolkitforbuildingmodern,highqualitycross-platformmobileappsfromasinglecodebaseinReact.Vue.Angular.一款开源的移动端UI工具包,用于开发现代的、高性能
- vue移动端绑定@click事件失效问题
丶End
vue移动端绑定click事件失效问题原因可能是你使用了better-scroll,默认它会阻止touch事件。所以在配置中需要加上click:true例:mounted(){this.scroll=newBscroll(this.$refs.wrapper,{mouseWheel:true,click:true,tap:true})}
- Vue移动端适配并解决rem影响第三方ui库样式问题
依旧大白丶
移动端移动端适配vue.js前端javascript
Vue移动端适配并解决rem影响第三方ui库样式问题一、项目中安装lib-flexiblenpminstalllib-flexible--save二、在项目的入口main.js文件中引入lib-flexibleimport'lib-flexible'三、安装postcss-px2rem-excludenpminstallpostcss-px2rem-exclude--save四、配置postcss
- 如何在Vue项目中使用vw实现移动端适配
小边_leo
Vue项目中使用vw实现移动端适配我们在vue移动端项目中的适配一般都采用rem,但是rem也不是能兼容所有的终端。随着viewport单位越来越受到众多浏览器的支持,下面将简单介绍怎么实现vw的兼容问题,用vw代替rem当我们采用vue-cli脚手架搭建完项目,安装所有依赖包之后,用npmrundev启动后,在根目录有一个.postcssrc.js文件,文件结构如下:imagevue-cli默认
- vue 移动端点击延迟_vue移动端项目-click事件在浏览器中延迟300ms的解决方法
Payton Sun
vue移动端点击延迟
在H5页面移动端项目当中,click事件在浏览器中会有300ms的延迟,这个也是移动端开发中常见的问题之一,今天就这个问题说一说解决方法解决click点击事件300ms延迟—fastClickfastClick的思路就是利用touch来模拟tap(触碰),如果认为是一次有效的tap,则在touchend时立即模拟一个click事件,分发到事件源(相当于主动触发一次click),同时阻止掉浏览器30
- Vue移动端左右滑动效果实现方法
daozun
1.最近得到一个新需求,需要在Vue项目的移动端页面上加上左右滑动效果,在网上查阅资料,最终锁定了vue-touch2.下载vue-touch(https://github.com/vuejs/vue-touch/tree/next)注意:如果Vue是2.x的版本的话,一定要下next分支上的。3.使用:
[email protected]在main.js中引入
- vue移动端html2canvas实现长按截图
今天也是爱大大的一天吖
vue.jshtml2canvas
1.安装html2canvasnpminstallhtml2canvas2.在需要生成海报的页面引入importhtml2canvasfrom'html2canvas';html//存放生成的图片//要转化为图片的dom结构//不能用background-image改成img标签装背景图js方法方法一//html转换为img图片htmlToimg(){letdom=document.getElem
- 【Vue】vue小工具,vue移动端h5页面使用小齿轮控制台,移动端项目打开控制台
阿民不加班
Vuevue插件实战案例vue.jsjavascript前端
前言没啥好说的,插件叫eruda提示:以下是本篇文章正文内容,下面案例可供参考一、原生用法这是我推荐的erudaeruda.init();还有另外一个叫VConsole//初始化引入的调试组件varvConsole=newVConsole();console.log('控制台打印信息最新');二、vue用法1.引入库npminstalleruda@^3.0.0--save2.编写环境配置本地为tr
- 记录:vue移动端富文本内容替换自定义视频全屏实现
相逢太短,莫等茶凉
vue.js音视频前端
使用vue3import{showImagePreview}from'vant';import{UtilService}from'@common/services/util.service';import'quill/dist/quill.core.css';import'quill/dist/quill.snow.css';import'quill/dist/quill.bubble.css';
- vue移动端实现预览word,excel,pdf, text以及cordova app 打开处理方案
weixin_45410246
Cordovavuecordovavue.jsjavascript前端vue
1.word引入importmammothfrom'mammoth'主要代码try{varxhr=newXMLHttpRequest()xhr.open('GET',this.url)xhr.responseType='arraybuffer'xhr.onload=function(e){vararrayBuffer=xhr.response//arrayBuffermammoth.convert
- vue移动端项目搭建
粥的进击之旅
使用框架:vue使用插件:vue-cli,vue-loader,axios,px2rem使用UI框架:mint-ui第一步、先用vue-cli直接搭建项目先全局安装vue-clinpminstall--gvue-cli然后执行创建项目语句vue-cli3.x则用vuecreateproject-namevue-cli2.x用(我这用的是2.x)vueinitwebpackproject-name搭
- 按需引入vant组件库
cd肖凌
vant-ui组件库是有赞团队开发维护的ui组件库,是现阶段常用的组件库之一,涵盖前端页面需要的大多数常用组件,相对好用,虽然我也只是用过element-ui和vant-ui而已我学习vue移动端app项目时就是使用vant-ui,全局引入太占内存,没有必要,因此我们按需引入vant-ui组件库的组件即可第一步,下载:npmivant-S用npm包管理器下载vant-uiyarnaddvant用y
- 简单封装vue移动端上拉加载更多
武汉前端阿杰
{{pullUpInfo.moreText}}{{pullUpInfo.loadingText}}{{pullUpInfo.noMoreText}}exportdefault{props:{parentPullUpState:{default:0},onInfiniteLoad:{type:Function,require:false}},data(){return{top:0,pullUpSta
- 如何在Vue移动端调出纯数字键盘
前端开发工程师在深圳
移动端弹键盘vux都弹键盘默认弹起键盘
VUX做移动端上城的时候需要用到纯数字键盘,可以使用以下方法这样调用出无*#的纯数字键盘这样调用出有*#的纯数字键盘
- vue移动端-里面 better-scroll 滑动使用 使用方法
undefined汪少
npminstallbetter-scroll--saveimportBScrollfrom'better-scroll'1,需要滑动的地方加上ref点菜详情热卖详情2,在methods:{//滑动initscroll(){newBScroll(this.$refs.rellfer)newBScroll(this.$refs.rell)}},3,在created页面初始化的时候调用次方法creat
- Vue移动端实现元素拖拽移动
showkw
Web前端vue.js
Vue移动端实现元素拖拽移动可拖拽元素data(){return{
- vue移动端图片预览,使用photoSwipe插件
冰淇wbq
photoswipe.jsvardoc=document,domEl=doc.createElement("div");domEl.innerHTML='';domEl.className="pswp";domEl.tabIndex="-1";domEl.setAttribute("role","dialog");domEl.setAttribute("aria-hidden","true");d
- Vue移动端点击输入框,弹出键盘,底部被顶起的问题
初辰ge
移动端vue.jsjavascript前端
问题描述:Vue开发中,当我们相对于父视图的底部布局子控件时,需要用position:fixed,如果页面内容不是很长,没有超出屏幕范围,那就还好,没有问题;一旦超出屏幕范围,当你点击输入框,弹出键盘时,底部固定定位的子控件就会被顶起来。这个问题在iOS端不会出现,在安卓端会出现。解决办法:...data(){return{docmHeight:'0',//初始状态可视区高度showHeight:
- Vue移动端路由切换案例解析及实例代码
技术驱动者
vue.js前端javascriptjs
在移动端开发中,Vue作为一种流行的前端框架,为我们提供了强大的路由功能,使得页面之间的切换变得灵活高效。本文将深入解析Vue移动端路由切换的实现,并提供相应的实例代码。首先,我们需要在Vue项目中安装vue-router插件,以便使用路由功能。可以通过以下命令进行安装:npminstallvue-router安装完成后,在项目的入口文件(一般是main.js)中引入vue-router,并创建一
- 2019-03-14
TCtimo
vue移动端开发记录一1.安装webstorm环境http://www.jetbrains.com/webstorm/官网地址2.破解激活地址:http://idea.lanyus.com/下载如图补丁文件,第一步:将补丁复制到安装目录的bin目录下第二步:修改同目录下的这两个文件一个是32位的,一个是64位的,建议同步修改。修改操作:将这两个文件用文本编辑器打开在最上面加入代码(圈起来的是存放w
- Vue移动端富文本插件vue-quill-edito简单使用
kangdeboke
jsvue
PC端的富文本插件比较好找,这次在移动端的项目中遇到需要富文本编辑内容,找了几款之后,最终觉得vue-quill-edito这款插件相对好用。以下是这款编辑器的简单使用方法,更多API关注Quill官网:https://quilljs.com/docs/quickstart/(外网速度可能较慢)。富文本编辑插件功能:富文本编辑器,它提供少量类似于MicrosoftWord的编辑功能,是一套HTML
- 书其实只有三类
西蜀石兰
类
一个人一辈子其实只读三种书,知识类、技能类、修心类。
知识类的书可以让我们活得更明白。类似十万个为什么这种书籍,我一直不太乐意去读,因为单纯的知识是没法做事的,就像知道地球转速是多少一样(我肯定不知道),这种所谓的知识,除非用到,普通人掌握了完全是一种负担,维基百科能找到的东西,为什么去记忆?
知识类的书,每个方面都涉及些,让自己显得不那么没文化,仅此而已。社会认为的学识渊博,肯定不是站在
- 《TCP/IP 详解,卷1:协议》学习笔记、吐槽及其他
bylijinnan
tcp
《TCP/IP 详解,卷1:协议》是经典,但不适合初学者。它更像是一本字典,适合学过网络的人温习和查阅一些记不清的概念。
这本书,我看的版本是机械工业出版社、范建华等译的。这本书在我看来,翻译得一般,甚至有明显的错误。如果英文熟练,看原版更好:
http://pcvr.nl/tcpip/
下面是我的一些笔记,包括我看书时有疑问的地方,也有对该书的吐槽,有不对的地方请指正:
1.
- Linux—— 静态IP跟动态IP设置
eksliang
linuxIP
一.在终端输入
vi /etc/sysconfig/network-scripts/ifcfg-eth0
静态ip模板如下:
DEVICE="eth0" #网卡名称
BOOTPROTO="static" #静态IP(必须)
HWADDR="00:0C:29:B5:65:CA" #网卡mac地址
IPV6INIT=&q
- Informatica update strategy transformation
18289753290
更新策略组件: 标记你的数据进入target里面做什么操作,一般会和lookup配合使用,有时候用0,1,1代表 forward rejected rows被选中,rejected row是输出在错误文件里,不想看到reject输出,将错误输出到文件,因为有时候数据库原因导致某些column不能update,reject就会output到错误文件里面供查看,在workflow的
- 使用Scrapy时出现虽然队列里有很多Request但是却不下载,造成假死状态
酷的飞上天空
request
现象就是:
程序运行一段时间,可能是几十分钟或者几个小时,然后后台日志里面就不出现下载页面的信息,一直显示上一分钟抓取了0个网页的信息。
刚开始已经猜到是某些下载线程没有正常执行回调方法引起程序一直以为线程还未下载完成,但是水平有限研究源码未果。
经过不停的google终于发现一个有价值的信息,是给twisted提出的一个bugfix
连接地址如下http://twistedmatrix.
- 利用预测分析技术来进行辅助医疗
蓝儿唯美
医疗
2014年,克利夫兰诊所(Cleveland Clinic)想要更有效地控制其手术中心做膝关节置换手术的费用。整个系统每年大约进行2600例此类手术,所以,即使降低很少一部分成本,都可以为诊 所和病人节约大量的资金。为了找到适合的解决方案,供应商将视野投向了预测分析技术和工具,但其分析团队还必须花时间向医生解释基于数据的治疗方案意味着 什么。
克利夫兰诊所负责企业信息管理和分析的医疗
- java 线程(一):基础篇
DavidIsOK
java多线程线程
&nbs
- Tomcat服务器框架之Servlet开发分析
aijuans
servlet
最近使用Tomcat做web服务器,使用Servlet技术做开发时,对Tomcat的框架的简易分析:
疑问: 为什么我们在继承HttpServlet类之后,覆盖doGet(HttpServletRequest req, HttpServetResponse rep)方法后,该方法会自动被Tomcat服务器调用,doGet方法的参数有谁传递过来?怎样传递?
分析之我见: doGet方法的
- 揭秘玖富的粉丝营销之谜 与小米粉丝社区类似
aoyouzi
揭秘玖富的粉丝营销之谜
玖富旗下悟空理财凭借着一个微信公众号上线当天成交量即破百万,第七天成交量单日破了1000万;第23天时,累计成交量超1个亿……至今成立不到10个月,粉丝已经超过500万,月交易额突破10亿,而玖富平台目前的总用户数也已经超过了1800万,位居P2P平台第一位。很多互联网金融创业者慕名前来学习效仿,但是却鲜有成功者,玖富的粉丝营销对外至今仍然是个谜。
近日,一直坚持微信粉丝营销
- Java web的会话跟踪技术
百合不是茶
url会话Cookie会话Seession会话Java Web隐藏域会话
会话跟踪主要是用在用户页面点击不同的页面时,需要用到的技术点
会话:多次请求与响应的过程
1,url地址传递参数,实现页面跟踪技术
格式:传一个参数的
url?名=值
传两个参数的
url?名=值 &名=值
关键代码
- web.xml之Servlet配置
bijian1013
javaweb.xmlServlet配置
定义:
<servlet>
<servlet-name>myservlet</servlet-name>
<servlet-class>com.myapp.controller.MyFirstServlet</servlet-class>
<init-param>
<param-name>
- 利用svnsync实现SVN同步备份
sunjing
SVN同步E000022svnsync镜像
1. 在备份SVN服务器上建立版本库
svnadmin create test
2. 创建pre-revprop-change文件
cd test/hooks/
cp pre-revprop-change.tmpl pre-revprop-change
3. 修改pre-revprop-
- 【分布式数据一致性三】MongoDB读写一致性
bit1129
mongodb
本系列文章结合MongoDB,探讨分布式数据库的数据一致性,这个系列文章包括:
数据一致性概述与CAP
最终一致性(Eventually Consistency)
网络分裂(Network Partition)问题
多数据中心(Multi Data Center)
多个写者(Multi Writer)最终一致性
一致性图表(Consistency Chart)
数据
- Anychart图表组件-Flash图转IMG普通图的方法
白糖_
Flash
问题背景:项目使用的是Anychart图表组件,渲染出来的图是Flash的,往往一个页面有时候会有多个flash图,而需求是让我们做一个打印预览和打印功能,让多个Flash图在一个页面上打印出来。
那么我们打印预览的思路是获取页面的body元素,然后在打印预览界面通过$("body").append(html)的形式显示预览效果,结果让人大跌眼镜:Flash是
- Window 80端口被占用 WHY?
bozch
端口占用window
平时在启动一些可能使用80端口软件的时候,会提示80端口已经被其他软件占用,那一般又会有那些软件占用这些端口呢?
下面坐下总结:
1、web服务器是最经常见的占用80端口的,例如:tomcat , apache , IIS , Php等等;
2
- 编程之美-数组的最大值和最小值-分治法(两种形式)
bylijinnan
编程之美
import java.util.Arrays;
public class MinMaxInArray {
/**
* 编程之美 数组的最大值和最小值 分治法
* 两种形式
*/
public static void main(String[] args) {
int[] t={11,23,34,4,6,7,8,1,2,23};
int[]
- Perl正则表达式
chenbowen00
正则表达式perl
首先我们应该知道 Perl 程序中,正则表达式有三种存在形式,他们分别是:
匹配:m/<regexp>;/ (还可以简写为 /<regexp>;/ ,略去 m)
替换:s/<pattern>;/<replacement>;/
转化:tr/<pattern>;/<replacemnt>;
- [宇宙与天文]行星议会是否具有本行星大气层以外的权力呢?
comsci
举个例子: 地球,地球上由200多个国家选举出一个代表地球联合体的议会,那么现在地球联合体遇到一个问题,地球这颗星球上面的矿产资源快要采掘完了....那么地球议会全体投票,一致通过一项带有法律性质的议案,既批准地球上的国家用各种技术手段在地球以外开采矿产资源和其它资源........
&
- Oracle Profile 使用详解
daizj
oracleprofile资源限制
Oracle Profile 使用详解 转
一、目的:
Oracle系统中的profile可以用来对用户所能使用的数据库资源进行限制,使用Create Profile命令创建一个Profile,用它来实现对数据库资源的限制使用,如果把该profile分配给用户,则该用户所能使用的数据库资源都在该profile的限制之内。
二、条件:
创建profile必须要有CREATE PROFIL
- How HipChat Stores And Indexes Billions Of Messages Using ElasticSearch & Redis
dengkane
elasticsearchLucene
This article is from an interview with Zuhaib Siddique, a production engineer at HipChat, makers of group chat and IM for teams.
HipChat started in an unusual space, one you might not
- 循环小示例,菲波拉契序列,循环解一元二次方程以及switch示例程序
dcj3sjt126com
c算法
# include <stdio.h>
int main(void)
{
int n;
int i;
int f1, f2, f3;
f1 = 1;
f2 = 1;
printf("请输入您需要求的想的序列:");
scanf("%d", &n);
for (i=3; i<n; i
- macbook的lamp环境
dcj3sjt126com
lamp
sudo vim /etc/apache2/httpd.conf
/Library/WebServer/Documents
是默认的网站根目录
重启Mac上的Apache服务
这个命令很早以前就查过了,但是每次使用的时候还是要在网上查:
停止服务:sudo /usr/sbin/apachectl stop
开启服务:s
- java ArrayList源码 下
shuizhaosi888
ArrayList源码
版本 jdk-7u71-windows-x64
JavaSE7 ArrayList源码上:http://flyouwith.iteye.com/blog/2166890
/**
* 从这个列表中移除所有c中包含元素
*/
public boolean removeAll(Collection<?> c) {
- Spring Security(08)——intercept-url配置
234390216
Spring Securityintercept-url访问权限访问协议请求方法
intercept-url配置
目录
1.1 指定拦截的url
1.2 指定访问权限
1.3 指定访问协议
1.4 指定请求方法
1.1 &n
- Linux环境下的oracle安装
jayung
oracle
linux系统下的oracle安装
本文档是Linux(redhat6.x、centos6.x、redhat7.x) 64位操作系统安装Oracle 11g(Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production),本文基于各种网络资料精心整理而成,共享给有需要的朋友。如有问题可联系:QQ:52-7
- hotspot虚拟机
leichenlei
javaHotSpotjvm虚拟机文档
JVM参数
http://docs.oracle.com/javase/6/docs/technotes/guides/vm/index.html
JVM工具
http://docs.oracle.com/javase/6/docs/technotes/tools/index.html
JVM垃圾回收
http://www.oracle.com
- 读《Node.js项目实践:构建可扩展的Web应用》 ——引编程慢慢变成系统化的“砌砖活”
noaighost
Webnode.js
读《Node.js项目实践:构建可扩展的Web应用》
——引编程慢慢变成系统化的“砌砖活”
眼里的Node.JS
初初接触node是一年前的事,那时候年少不更事。还在纠结什么语言可以编写出牛逼的程序,想必每个码农都会经历这个月经性的问题:微信用什么语言写的?facebook为什么推荐系统这么智能,用什么语言写的?dota2的外挂这么牛逼,用什么语言写的?……用什么语言写这句话,困扰人也是阻碍
- 快速开发Android应用
rensanning
android
Android应用开发过程中,经常会遇到很多常见的类似问题,解决这些问题需要花时间,其实很多问题已经有了成熟的解决方案,比如很多第三方的开源lib,参考
Android Libraries 和
Android UI/UX Libraries。
编码越少,Bug越少,效率自然会高。
但可能由于 根本没听说过、听说过但没用过、特殊原因不能用、自己已经有了解决方案等等原因,这些成熟的解决
- 理解Java中的弱引用
tomcat_oracle
java工作面试
不久之前,我
面试了一些求职Java高级开发工程师的应聘者。我常常会面试他们说,“你能给我介绍一些Java中得弱引用吗?”,如果面试者这样说,“嗯,是不是垃圾回收有关的?”,我就会基本满意了,我并不期待回答是一篇诘究本末的论文描述。 然而事与愿违,我很吃惊的发现,在将近20多个有着平均5年开发经验和高学历背景的应聘者中,居然只有两个人知道弱引用的存在,但是在这两个人之中只有一个人真正了
- 标签输出html标签" target="_blank">关于标签输出html标签
xshdch
jsp
http://back-888888.iteye.com/blog/1181202
关于<c:out value=""/>标签的使用,其中有一个属性是escapeXml默认是true(将html标签当做转移字符,直接显示不在浏览器上面进行解析),当设置escapeXml属性值为false的时候就是不过滤xml,这样就能在浏览器上解析html标签,
&nb