微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

运营商 '[]'

如何解决运营商 '[]'

app.post('/signup',(req,res) async {
    var body = await req.parseBody();

    var name = body['name'];
    var email = body['email'];
    var phone = body['phone'];
    var pass = body['pass'];
    var image = body['image'];
  });

enter image description here

21:21:错误:未为类“void”定义运算符“[]”。 尝试将运算符更正为现有运算符,或定义“[]”运算符。

解决方法

我想你正在使用 Angel,所以试试这个:

x <- seq(-100,100,length.out = 50)
y <- seq(-42.5,42.5,length.out = 50)
points <- merge(x,y)

points %>%
  ggplot() +
  geom_point(aes(x,y),color = "lightblue")  +
  theme_minimal() +
  #start of grid points
  geom_segment(aes(x = -100,xend = -100,y = -42.5,yend = 42.5)) +
  geom_segment(aes(x = -80,xend = -80,yend = 42.5)) +
  geom_segment(aes(x = -60,xend = -60,yend = 42.5)) +
  geom_segment(aes(x = -40,xend = -40,yend = 42.5)) +
  geom_segment(aes(x = -20,xend = -20,yend = 42.5)) +
  geom_segment(aes(x = 0,xend = 0,yend = 42.5))  +
  geom_segment(aes(x = 80,xend = 80,yend = 42.5)) +
  geom_segment(aes(x = 60,xend = 60,yend = 42.5)) +
  geom_segment(aes(x = 40,xend = 40,yend = 42.5)) +
  geom_segment(aes(x = 20,xend = 20,yend = 42.5)) +
  geom_segment(aes(x = 100,xend = 100,yend = 42.5)) +
  geom_segment(aes(x = -100,y = -30.357,yend = -30.357)) +
  geom_segment(aes(x = -100,y = -18.214,yend = -18.214)) +
  geom_segment(aes(x = -100,y = -6.071,yend = -6.071)) +
  geom_segment(aes(x = -100,y = 30.357,yend = 30.357)) +
  geom_segment(aes(x = -100,y = 18.214,yend = 18.214)) +
  geom_segment(aes(x = -100,y = 6.071,yend = 6.071)) +
  geom_segment(aes(x = -100,yend = -42.5)) +
  geom_segment(aes(x = -100,y = 42.5,yend = 42.5))

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。