在Mootools文档中,关于Element,我无法捕捉到document元素的语义区域,我在Mootools Api中找不到任何引用.它只是DOM Api吗?
例如,$接受三个参数,第一个是element.如何定义元素?
此外,该文件提供了一些建议:document.getElementById(‘foo’),document.id(‘foo’),$(‘foo’).所以我理解documentMootools是一个非常重要的部分,但我不明白它与经典DOM API重叠的地方,扩展到底有多远等等.
在Flexboxgrid框架我看到margin的-1rem在.row类。在小视口中,这会创建容器的小水平滚动。
由于我在其他框架上看到过这种负边距,它的目的是什么?内列具有相同数量的填充,相反。
图中红线为.container,虚线为.row。顺便说一句,边距仅在右侧可见。
我正在尝试使用 URL 对象读取页面 URL。
let url:URL = new URL(window.location)
Run Code Online (Sandbox Code Playgroud)
这会返回一个错误Argument of type 'Location' is not assignable to parameter of type 'string'.
let url:Location = new URL(window.location)
Run Code Online (Sandbox Code Playgroud)
这反而返回Type 'URL' is missing the following properties from type 'Location': ancestorOrigins, assign, reload, replace
那么 URL 对象的类型是什么?
谢谢