Skip to content

注意事项

ambit-tsai edited this page Feb 19, 2021 · 2 revisions

跨域

  1. 加载应用入口页面时,fetch 可能遇到跨域错误,可通过配置 Access-Control-Allow-Origin 或者做反向代理解决

HTML

  1. 标签属性中的 JS 运行在全局中
  2. 应用中的元素 <base> 会被插入到运行环境 <iframe><head>

CSS

  1. rem 指向的根元素不是 Shadow DOM 中的 <html>,而是窗口页面的根元素
Clone this wiki locally