GithubHelp home page GithubHelp logo

Comments (6)

jawil avatar jawil commented on August 26, 2024 1

额,没用过啊,原生JavaScript控。语法bug对于我来说很少了,主要还是业务逻辑的bug,考虑不周全,这个不管用那种语言都是很难避免的,至于代码可读性代码多了逻辑复杂了都不好理解别人的思维😂

from gayhub.

axetroy avatar axetroy commented on August 26, 2024

typescript写法与js并没有差异,只是类型检测系统。
用起来会很爽

from gayhub.

jawil avatar jawil commented on August 26, 2024

有了解过,但是没有具体去做项目用过,就是JavaScript的超集,对ES6/7/8也完美支持

from gayhub.

jawil avatar jawil commented on August 26, 2024

后续代码都会慢慢重构优化,哈哈,现在主要开发核心功能,还有好几个模块没时间开发

from gayhub.

axetroy avatar axetroy commented on August 26, 2024

@jawil
有一个是.

里面的代码, 经常有扩写原生对象的方法.

这就导致了, 有些地方代码逻辑不清晰, 不推荐这么做...

比如这里

const attr = (HTMLElement.prototype.attr = function(attr, value) {
  return arguments[1] == void 0
    ? this.getAttribute(attr)
    : this.setAttribute(attr, value);
});

from gayhub.

jawil avatar jawil commented on August 26, 2024

主要是模拟JQ的attr方法,偷个懒少些代码,getAttribute有点太长了

from gayhub.

Related Issues (20)

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.