摘要:                    
1.npm安装 package.json中会出现 2.main.js引入 3.webpack.base.conf.js 4.在.babelrc文件里加入                阅读全文
            
        随笔分类 - 前端
swiper4-vue 不使用loop,由最后一张跳到第一张
2018-07-17 12:59 by 路途遥远,Go~, 5151 阅读, 收藏,
摘要:                    
<template> <div class="swiper-box"> <div class="swiper-container"> <div class="swiper-wrapper"> <div class="swiper-slide" v-for="(item, index) in slid                阅读全文
            
        Get和Post请求
2018-07-13 11:04 by 路途遥远,Go~, 349 阅读, 收藏,
摘要:                    
Get和Post在面试中一般都会问到,一般的区别: (1)post更安全(不会作为url的一部分,不会被缓存、保存在服务器日志、以及浏览器浏览记录中) (2)post发送的数据更大(get有url长度限制) (3)post能发送更多的数据类型(get只能发送ASCII字符) (4)post比get慢                阅读全文
            
        canvars 画花
2017-04-07 16:34 by 路途遥远,Go~, 394 阅读, 收藏,
摘要:                    
index.html<!DOCTYPE html><html><head> <title>旋转的花</title> <meta charset = "utf-8"> <!--width - 可视区域的宽度,值可为数字或关键词device-width --> <!--height - viewport                阅读全文
            
        react 调用 native 的callShareAllFunc()方法,实现分享
2016-10-27 21:03 by 路途遥远,Go~, 385 阅读, 收藏,
摘要:                    
let shareName = { '0': '微信', '1': '朋友圈', '2': '新浪微博', '3': ' QQ', '4': 'QQ空间'};render(){ //分享YztApp.configureShare({ "title": encodeURIComponent(this.                阅读全文
            
        react 评论列表插入评论数据 unshift
2016-09-13 17:38 by 路途遥远,Go~, 743 阅读, 收藏,
摘要:                    
// unshift 新增数据放到最上面//插入 回复/发表 评论else if(action.type INSERT_COMMENT ){ let content = action.text; let senderName = action.replyName; let index = actio                阅读全文
            
        web app 自适应 弹性布局之rem
2016-08-23 13:48 by 路途遥远,Go~, 994 阅读, 收藏,
摘要:                    
关于rem,主要参考文档 1。腾讯ISUX (http://isux.tencent.com/web-app-rem.html) 2。http://www.w3cplus.com/css3/define-font-size-with-css3-rem 现在移动端 web app 的自适应布局的方案有                阅读全文
            
        移动平台对 META 标签的定义
2016-08-22 19:22 by 路途遥远,Go~, 351 阅读, 收藏,
摘要:                    
下面介绍一些有关标记的例子及解释。 一、meta 标签分两大部分:HTTP 标题信息(http-equiv)和页面描述信息(name)。 1、http-equiv 属性的 Content-Type 值(显示字符集的设定) 说明:设定页面使用的字符集,用以说明主页制作所使用的文字语言,浏览器会根据此来                阅读全文
            
        客户端 适应不同大小屏幕
2015-09-10 15:29 by 路途遥远,Go~, 334 阅读, 收藏,
摘要:                    
@media only screen and (min-width:320px){ html, body , .content{font-size:15px!important}.viewport{max-width:320px} } @media...                阅读全文
            
        html中表格table的内容居中显示
2015-09-10 15:17 by 路途遥远,Go~, 2479 阅读, 收藏,
摘要:                    
align——表示左右居中——left,center,rightvalign——控制上下居中——left,center,right 标签内加入: vertical-align:middle;                阅读全文
            
         
                     
                    
                 
                    
                 浙公网安备 33010602011771号
浙公网安备 33010602011771号