Git Product home page Git Product logo

Comments (3)

MrSeaWave avatar MrSeaWave commented on August 30, 2024

11. jsonp的原理与实现

from interview.

ChrisWen960216 avatar ChrisWen960216 commented on August 30, 2024

3. JavaScript的错误类型有哪些

There are seven other core error constructors in JavaScript, including DOMException.
I provide a link that copied from MDN.

from interview.

ChrisWen960216 avatar ChrisWen960216 commented on August 30, 2024

8. 微信小程序它用户体验比普通的h5要好,它内部做了什么工作达到这个目的呢?

  • 普通的网页开发,渲染线程和脚本线程是互斥关系。例如无限循环的脚本会造成页面卡死,过多的数据会阻碍页面渲染
  • 各平台脚本执行环境以及用于渲染非原生组件的环境是各不相同的
    • 在 iOS 上,小程序逻辑层的 javascript 代码运行在 JavaScriptCore 中,视图层是由 WKWebView 来渲染的,环境有 iOS 12、iOS 13 等;
    • 在 Android 上,小程序逻辑层的 javascript 代码运行在 V8 中,视图层是由自研 XWeb 引擎基于 Mobile Chrome 内核来渲染的;
    • 在 开发工具上,小程序逻辑层的 javascript 代码是运行在 NW.js 中,视图层是由 Chromium Webview 来渲染的。
  • 因为JS运行不在浏览器和node环境中,故无法使用浏览器对象及部分NPM包

from interview.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.