肉饼博客

Talk is cheap. Show me the code.

0%

behaviors 是用于组件间代码共享的特性,类似于一些编程语言中的“mixins”或“traits”。
每个 behavior 可以包含一组属性、数据、生命周期函数和方法,组件引用它时,它的属性、数据和方法会被合并到组件中,生命周期函数也会在对应时机被调用。每个组件可以引用多个 behavior 。 behavior 也可以引用其他 behavior

阅读全文 »

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
._scrollbar::-webkit-scrollbar-track-piece {
background: #F0F0F0;
}
._scrollbar::-webkit-scrollbar {
width: 10px;
height: 10px;
}
._scrollbar::-webkit-scrollbar-thumb {
background: #81C8FF;
background-clip:padding-box;
min-height:28px;
border-radius: 5px;
}
._scrollbar::-webkit-scrollbar-thumb:hover {
background-color:#bbb;
cursor: pointer;
}

样式一:水平三个冒泡

1
2
3
4
5
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
阅读全文 »

一、第一家公司存在的问题

1.打杂,过于清闲

2.缺乏挑战性、没有成就感、重复劳动

3.没有自我认同

4.同事养老,没有同路人

5.薪资不满意

6.制度僵化

7.行业不景气、公司前景堪忧

阅读全文 »

示例:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 将解决方法封装到 async 函数中
async function solution() {

// 等待第一个 HTTP 请求并打印出结果
console.log(await rp('http://example.com/'));


// 创建两个 HTTP 请求,不等它们执行完 —— 让他们同时执行
const call2Promise = rp('http://example.com/'); // Does not wait!
const call3Promise = rp('http://example.com/'); // Does not wait!


// 创建完以后 —— 等待它们都执行完
const response2 = await call2Promise;
const response3 = await call3Promise;

console.log(response2);
console.log(response3);
}


// 调用这一 async 函数
solution().then(() => console.log('Finished'));
阅读全文 »

1.echarts元素样式

1
2
3
4
5
6
#scoreLine {
width: 100%;
height: 280px;
padding: 0 40px;
box-sizing: border-box;
}
阅读全文 »