我试图在Firefox V30.0 Scratchpad中执行以下代码:
function do_something() {
  console.log(foo); // ReferenceError
  let foo = 2;
}
do_something();
预期的行为是我的程序应抛出引用错误,因为我在let声明之前访问变量.但是,我没有得到预期的行为,程序被执行,结果如下
undefined
你能解释一下,为什么表现如此?
为了使用CSS样式呈现Oval,我在某些网站中找到了以下CSS规则
#oval {
  width: 200px;
  height: 100px;
  background: red;
  -webkit-border-radius: 100px / 50px;
     -moz-border-radius: 100px / 50px;
          border-radius: 100px / 50px;
 }
但100px/50px意味着什么?
CSS中的/(斜杠)是什么意思?我们可以在哪里使用这种简写注释?