我使用的是角度6和RxJS 6,当我在下面尝试这个例子时,我收到以下错误:
ReferenceError: async is not defined
答案 0 :(得分:0)
它取决于您在对象表达式中传递的值输入值。
输入值应为 <html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
</head>
<style>
.thish {
position: relative;
height: 150px;
width: 150px;
background: red;
}
.thish::before {
position: absolute;
content: "\f2ba";
font: normal normal normal 14px/1 FontAwesome;
right: 40%;
color: #000;
bottom: 0;
height: 30px;
width: 60px;
background: green;
z-index: 1;
}
</style>
<body>
<div class="thish">
</div>
</body>
</html>
,因为Observable | Promise | null | undefined
管道订阅了Observable或Promise并返回它已发出的最新值。