GithubHelp home page GithubHelp logo

mobx's Introduction

  • babel:仅仅用于语法转换(transforms syntax),无法使用Promise等浏览器未实现的全局对象(globals,native methods)
  • babel-pollyfill(babel-runtime):使用Promise等浏览器未实现的全局对象(globals,native methods)
  • babel-plugin-transform-runtime:配合babel-runtime使用,功能类似babel-pollyfill
  • babel-preset-react:转换JSX语法
  • babel-preset-env:使用babel-preset-env, 我们可以声明环境, 然后该preset就会只编译包含我们所声明环境缺少的特性的代码,因此也是比较推荐的方式。当没有添加任何的配置选项时,babel-preset-env默认行为是和babel-preset-latest是一样的

注:最新的babel更加组件化,需要自行配置plugins实现所需要的功能,plugin是具有单一功能的模块,而preset是一组plugins,如:es2015-classes,es2015-for-of等等以及babel-preset-2015

babel参考链接

react(16.2.0)

react-router(4.2.0)

  • location:指定当前App的位置
  • match:包含params,path,url,isExact四个属性,如图所示: match对象
  • 路由前缀重合,造成的匹配问题,如下图所示: prefix-different

mobx(4.1.0)

webpack(4.1.1)

http

  • client------>server1------>server2------>...------>origin server(这个才是提供资源的那个web server),所以即使origin server服务器没有启动,你的http请求也会得到相应的5XX响应。
  • 关于xmlhttprequest状态码以及业务代码如何设计方案?目的:前端更好的处理异常场景,在UI展示或前端交互提供更好的用户体验,比如:通信未接通,直接提示用户网络故障(用户未联网或者服务器挂掉了,这个需要委婉的提示)等等。
  • 1、统一使用http状态码
  • 2、统一自定义状态码
  • 3、混合使用http状态码+自定义状态码

mobx's People

Watchers

 avatar

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.