<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ruthlessSimple的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/ruthlessSimple</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; ruthlessSimple]]></copyright><item><title><![CDATA[水滴图]]></title><link>https://blog.youkuaiyun.com/ruthlessSimple/article/details/112177724</link><guid>https://blog.youkuaiyun.com/ruthlessSimple/article/details/112177724</guid><author>ruthlessSimple</author><pubDate>Mon, 04 Jan 2021 14:48:29 +0800</pubDate><description><![CDATA[需要引进

&lt;script src="./js/echarts.min.js"&gt;&lt;/script&gt;
&lt;script src="./js/echarts-liquidfill.min.js"&gt;&lt;/script&gt;


直接上代码

shuidi(id, color, data) {
      let water = echarts.init(document.getElementById(id))
      let option = {
          .]]></description><category></category></item><item><title><![CDATA[css相关（持续更新）]]></title><link>https://blog.youkuaiyun.com/ruthlessSimple/article/details/111178219</link><guid>https://blog.youkuaiyun.com/ruthlessSimple/article/details/111178219</guid><author>ruthlessSimple</author><pubDate>Mon, 14 Dec 2020 16:54:03 +0800</pubDate><description><![CDATA[css减法运算

在css中我们经常遇到一些百分比或者自适应的布局这个时候就遇到用到百分比宽度减去固定宽度

width:calc(100vw - 300px)

渐变
//线性渐变  颜色后面加百分比
background-image: linear-gradient(#061833, rgba(0, 0, 0, 0));
//径向渐变
background-image: radial-gradient(red 5%, yellow 15%, green 60%);

背景图片不动，内容滚动
backgr]]></description><category></category></item><item><title><![CDATA[时间相关（持续更新）]]></title><link>https://blog.youkuaiyun.com/ruthlessSimple/article/details/111177802</link><guid>https://blog.youkuaiyun.com/ruthlessSimple/article/details/111177802</guid><author>ruthlessSimple</author><pubDate>Mon, 14 Dec 2020 16:51:36 +0800</pubDate><description><![CDATA[第一步：获取当前时间（可直接复制）

function nowtime(){
let yy = new Date().getFullYear();
let mm = new Date().getMonth() + 1;
let dd = new Date().getDate();
let hh = new Date().getHours();
let mf = new Date().getMinutes() &lt; 10 ? ‘0’ + new Date().getMinutes() : new Date]]></description><category></category></item><item><title><![CDATA[常用的Array方法(持续更新)]]></title><link>https://blog.youkuaiyun.com/ruthlessSimple/article/details/111177423</link><guid>https://blog.youkuaiyun.com/ruthlessSimple/article/details/111177423</guid><author>ruthlessSimple</author><pubDate>Mon, 14 Dec 2020 16:40:54 +0800</pubDate><description><![CDATA[在js中数组的方法有很多，作为一个新手自己整理了我们常用到的一些方法

数组去重
Array.from(new Set(arr))

转化字符串
var a = [1,2,3,4]
console.log(a.join()); // "1,2,3,4"
console.log(a.join(""); // "1234"
console.log(a.join(" ")); // "1 2 3 4"
console.log(a.join("-")); // "1-2-3-4"

数组求和

方法一

func.]]></description><category></category></item><item><title><![CDATA[获取当前的星期，获取过去未来的时间]]></title><link>https://blog.youkuaiyun.com/ruthlessSimple/article/details/108959233</link><guid>https://blog.youkuaiyun.com/ruthlessSimple/article/details/108959233</guid><author>ruthlessSimple</author><pubDate>Thu, 08 Oct 2020 09:00:13 +0800</pubDate><description><![CDATA[获取当前的星期
var myDate = new Date();
        var days = myDate.getDay();
        switch(days) {
            case 1:
                days = '星期一';
                break;
            case 2:
                days = '星期二';
                break;
            case 3]]></description><category></category></item><item><title><![CDATA[小白 文本超出部分显示省略号，单行，多行]]></title><link>https://blog.youkuaiyun.com/ruthlessSimple/article/details/108822572</link><guid>https://blog.youkuaiyun.com/ruthlessSimple/article/details/108822572</guid><author>ruthlessSimple</author><pubDate>Sun, 27 Sep 2020 10:24:54 +0800</pubDate><description><![CDATA[单行文本超出省略号

overflow: hidden;    //超出部分隐藏
text-overflow: ellipsis;     //显示省略号
white-space: nowrap;  //不换行

多行文本超出显示省略号

overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;  //要隐藏几行这里写几

刚入行的新手努力中多多支持  优逸客–孔

...]]></description><category></category></item></channel></rss>