Giter Site home page Giter Site logo

perfect debug mode about seajs HOT 3 CLOSED

seajs avatar seajs commented on June 3, 2024
perfect debug mode

from seajs.

Comments (3)

lifesinger avatar lifesinger commented on June 3, 2024
  1. don't remove inserted node when debug is true.

from seajs.

lifesinger avatar lifesinger commented on June 3, 2024

when debug = true, auto load xx-debug version

from seajs.

lifesinger avatar lifesinger commented on June 3, 2024

debug 打开时:

  1. 会输出 console 信息
  2. 不会删除动态插入的 script 节点
  3. 不会删除 seajs 上的 private 成员

加载 sea.js, debug 默认关闭
加载 sea-debug.js, debug 默认打开

要改变默认值,需 seajs.config( debug: true )

debug 有三个值:

0 - false
1 - true
2 - 会给所有下载的文件自动添加当前时间戳,强行清缓存

debug 开启时,不会自动加载对应的 xx-debug 模块,引用 debug 版本的模块,由开发者自己控制,比如:require('./jquery-debug'),这种能保持功能至简同时满足所有需求。

from seajs.

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.