We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
核心代码
(function(root, factory) { if (typeof exports === "object" && typeof module === "object") { // CommonJS规范 node 环境 判断是否支持 module.exports 支持 require 这种方法 module.exports = factory(require); } else if (typeof define === "function" && define.md) { // AMD 如果环境中有define函数,并且define函数具备amd属性,则可以判断当前环境满足AMD规范 console.log("是AMD模块规范,如require.js"); define(factory()); } else if (typeof exports === "object") { // 不支持 module 但是支持 exports 的情况下使用 exports导出 是CommonJS 规范 exports["jiang-hooks"] = factory(); } else { // 直接挂载在全局对象上 root.umdModule = factory(); } })(this, function() { return { name: "Umd模块", }; });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
核心代码
The text was updated successfully, but these errors were encountered: