Xiaomi front-end interview questions

  1. The following are not part of the document object method:
    onload ajax
    is the document object method
    querySelectorAll children
  2. The following expression is not true:
    [1,2,3].splice(1,1,1)==[2]
    '1' ===true The
    true expression is:
    null == undefined Object .prototype
let Mi =newFunction();
Mi.__proto__.__proto__==Object.prototype
  1. The functions of Image and iframe support cross-domain
    Local by default. Storage and canvas do not support cross-domain by default

  2. Expression of relational data model: It
    can support the connection between the three entities of 1:1, 1:m, m:n

  3. The following description of closures is correct:
    Variables in closures will not be cleared after execution
    (Function(){})() is theoretically a closure

  4. What is incorrect about closures is:
    closures do not satisfy the chain scope structure,
    closures do not consume memory and can be used at any time

Guess you like

Origin blog.csdn.net/weixin_50001396/article/details/113871091