摘要: 只展示在项目的初级用法,最常用的东西 1 嵌套 选择器的嵌套,属性的嵌套等 //css div h1 { color : red; } //sass div { hi { color:red; } } .box { width: 666px; .content { font-size: 66px; 阅读全文
posted @ 2020-06-02 18:24 懵懵懂懂的小孩啊 阅读(249) 评论(0) 推荐(0)
摘要: npm install --save node-sass --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist --sass-binary-site=http://npm.taobao.org 阅读全文
posted @ 2020-06-02 18:03 懵懵懂懂的小孩啊 阅读(7138) 评论(0) 推荐(1)
摘要: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:11000' is therefore not allowed access 原因:浏览器的同 阅读全文
posted @ 2020-05-19 15:30 懵懵懂懂的小孩啊 阅读(451) 评论(0) 推荐(0)
摘要: function lineInit(xAxisdata, data, lends, isline,ileng,l,top,yname,xname) { if (isline == null) isline = true; ileng = ileng || false; var xl = xAxisd 阅读全文
posted @ 2020-05-19 15:14 懵懵懂懂的小孩啊 阅读(960) 评论(0) 推荐(0)
摘要: 1调用echarts.min.js 2 调用中国地图 china.js 3 初始化 4调用方法 var _map = echarts.init(document.getElementById('map'), 'macarons'); function getAreaMap(d,zoom) { zoo 阅读全文
posted @ 2020-05-19 15:09 懵懵懂懂的小孩啊 阅读(318) 评论(0) 推荐(0)
摘要: var baseURL="https://xxxxxxxx/api/"; function ajaxData(url, pdata, clallback) {$.ajaxSetup({ cache: false });$.ajax({url: baseURL+ url, type: "GET", d 阅读全文
posted @ 2020-05-18 23:19 懵懵懂懂的小孩啊 阅读(194) 评论(0) 推荐(0)
摘要: 1、IE6怪异解析之padding与border算入宽高 原因:未加文档声明造成非盒模型解析 解决方法:加入文档声明<!doctype html> 2、IE6在块元素、左右浮动、设定marin时造成margin双倍(双边距) 解决方法:display:inline 3、以下三种其实是同一种bug,其 阅读全文
posted @ 2020-05-18 23:03 懵懵懂懂的小孩啊 阅读(157) 评论(0) 推荐(0)
摘要: 1 在main.js 注册层全局组件 import NavBar from './components/common/NavBar'; Vue.component(NavBar.name,NavBar) 2 编写自定义组件 并使用 <template> <div> <mt-header :title 阅读全文
posted @ 2020-05-18 22:57 懵懵懂懂的小孩啊 阅读(117) 评论(0) 推荐(0)
摘要: 动态添加src被当作静态资源处理了,没有进行编译所以要加require eg: <mt-swipe :auto="4000"> <mt-swipe-item v-for="item in images"> <img :src="item.imgSrc" alt="" class="imgs"> </ 阅读全文
posted @ 2020-05-18 22:46 懵懵懂懂的小孩啊 阅读(2845) 评论(0) 推荐(0)
摘要: // 全局过滤器 格式化数字及金额 // f 保留位数 //isarr 单位 可为数量可为金额 Vue.filter('Formats', function (value,f, isarr) { try { f = f || 1; var v = value; if (v >= 100000000) 阅读全文
posted @ 2020-05-18 22:39 懵懵懂懂的小孩啊 阅读(1202) 评论(0) 推荐(0)