Skip to content

Instantly share code, notes, and snippets.

View noobalex's full-sized avatar
🦄

Alex noobalex

🦄
  • All over the place
View GitHub Profile
@noobalex
noobalex / lazy.html
Created January 2, 2020 02:45
页面延迟加载
<style>
.page{position:relative;-ms-flex-direction:column;flex-direction:column;min-height:100vh}
.page-loading{background:center no-repeat;background-size:auto}
.js-hidden{display:none!important}
</style>
<div id="page-loading" class="page page-loading" style="background-image:url(../../img/loading-0.gif)"></div>
<div id="app" class="page js-hidden">
</div>
@noobalex
noobalex / echarts-demo.js
Created December 31, 2019 02:10
echarts 坐标轴名称倾斜+换行
axisLabel : {//坐标轴刻度标签的相关设置。
interval:0,
rotate:"45",
margin: 15,//刻度标签与轴线之间的距离。
formatter : function(params){
var newParamsName = "";// 最终拼接成的字符串
var paramsNameNumber = params.length;// 实际标签的个数
var provideNumber = 6;// 每行能显示的字的个数
var rowNumber = Math.ceil(paramsNameNumber / provideNumber);// 换行的话,需要显示几行,向上取整
/**
@noobalex
noobalex / settings.xml
Created December 6, 2019 08:25 — forked from billryan/settings.xml
Maven mirror for Aliyun
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
@noobalex
noobalex / package.json
Last active December 2, 2019 03:17
live-server proxy
"scripts": {
"start": "live-server --open=./ --port=9000 --proxy=/fhdd:http://127.0.0.1:8001/fhdd --proxy=/arcgis:http://10.3.250.139:8399/arcgis --proxy=/arcgis2:http://10.3.250.139:8399/arcgis"
}
// --open 启动服务器时打开指定的文件
// --port 启动指定端口
// --proxy 要跨域请求的域名和端口