Coder Social home page Coder Social logo

layabox / layanative1.0 Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 13.0 251.26 MB

LayaNative1.0

Shell 0.12% PowerShell 0.01% Makefile 0.16% Objective-C 1.11% JavaScript 10.69% GLSL 0.84% Java 3.50% Objective-C++ 1.60% C++ 66.32% C 13.13% Batchfile 0.01% TypeScript 2.51% QMake 0.02%

layanative1.0's People

Contributors

lvfulong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

layanative1.0's Issues

http post 请求结果里会把所有表示错误的 status 改成 404?

我碰到个问题,服务端返回了 401, 但客户端收到 404.
同事顺藤摸瓜找到这段疑似问题的代码。

var onPostError = function (e1, e2) {
var _t = this._t;
_t._readyState = 4;
_t._status = 404;
_t.xhr._changeState(4);
if (_t.onerror) {
var ev = new _lbEvent("error");
ev.target = _t;
ev['ecode1'] = e1;
ev['ecode2'] = e2;
_t.onerror(ev);
}
onPostLoad.ref = onPostError.ref = null;
};

401 和 404 有着完全不同的含义,会导致开发人员误判问题。

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.