auto commit

This commit is contained in:
DuYi 2024-08-27 10:14:14 +08:00
parent de57a355b9
commit 65149c88e1
67 changed files with 67 additions and 15 deletions

View File

@ -4,3 +4,4 @@ this.c = 'c';
module.exports = {
d: 'd',
};

View File

@ -3,3 +3,4 @@ export { count };
export function increase() {
count++;
}

View File

@ -10,3 +10,4 @@
<script src="./index.js" type="module"></script>
</body>
</html>

View File

@ -5,3 +5,4 @@ increase();
console.log(count);
console.log(counter.count);
console.log(c);

View File

@ -1,2 +1,3 @@
const m = require('./1');
console.log(m);

View File

@ -134,3 +134,4 @@ console.log(a); // 2

View File

@ -1 +1,2 @@
console.log(123);

View File

@ -1 +1,2 @@
console.log(123);

View File

@ -44,3 +44,4 @@ npm init @命名空间 # 等效于 npx @命名空间/create
npm init @命名空间/包名 # 等效于 npx @命名空间/create-包名
```

View File

@ -1,3 +1,4 @@
module.exports = {
extends: 'airbnb',
};

View File

@ -3,3 +3,4 @@ let a = 1;
if (a === 1) {
a *= 2;
}

View File

@ -3,3 +3,4 @@ module.exports = {
eqeqeq: 'error',
},
};

View File

@ -2,3 +2,4 @@ var a = 1;
if (a == 1) {
}

View File

@ -15,3 +15,4 @@ module.exports = {
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
},
};

View File

@ -22,3 +22,4 @@ npm run lint
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

View File

@ -3,3 +3,4 @@ module.exports = {
'@vue/cli-plugin-babel/preset',
],
};

View File

@ -15,3 +15,4 @@
<!-- built files will be auto injected -->
</body>
</html>

View File

@ -26,3 +26,4 @@ export default {
margin-top: 60px;
}
</style>

View File

@ -56,3 +56,4 @@ a {
color: #42b983;
}
</style>

View File

@ -6,3 +6,4 @@ Vue.config.productionTip = false;
new Vue({
render: (h) => h(App),
}).$mount('#app');

View File

@ -25,3 +25,4 @@ webpack的版本会不断更新但它的核心原理是不变的因此

View File

@ -62,3 +62,4 @@
for (let e = 1; e < 20; e++) console.log(n(1, 10));
},
]);

View File

@ -3,3 +3,4 @@ import { getRandom } from './module';
for (let i = 1; i < 20; i++) {
console.log(getRandom(1, 10));
}

View File

@ -2,3 +2,4 @@ export function getRandom(min, max) {
const n = Math.random() * (max - min);
return Math.floor(n) + min;
}

View File

@ -1,3 +1,4 @@
module.exports = {
devtool: 'none',
};

View File

@ -220,3 +220,4 @@
/******/
})();
//# sourceMappingURL=main.js.map

View File

@ -1,3 +1,4 @@
const resp = await fetch("http://www.baidu.com");
const jsonBody = await resp.json();
export default jsonBody;

View File

@ -6,3 +6,4 @@ module.exports = {
topLevelAwait: true,
},
};

View File

@ -3,3 +3,4 @@
console.log('f1'), console.log('f4');
})();
//# sourceMappingURL=index2.js.map

View File

@ -1 +1,2 @@
console.log("index1.js没有依赖其他模块也没有导出任何东西");

View File

@ -2,3 +2,4 @@ import { f1 } from './modules/a';
import * as bFuncs from './modules/b';
f1();
bFuncs.f4();

View File

@ -7,3 +7,4 @@ export function f2() {
console.log('f2');
f3();
}

View File

@ -5,3 +5,4 @@ export function f3() {
export function f4() {
console.log("f4");
}

View File

@ -6,3 +6,4 @@ module.exports = {
index2: "./src/index2.js",
},
};

View File

@ -1,3 +1,4 @@
import _ from "lodash";
import moment from "moment";
console.log(_, moment);

View File

@ -10,3 +10,4 @@ module.exports = {
// 更多配置参考https://webpack.docschina.org/configuration/other-options/#cache
},
};

View File

@ -4,3 +4,4 @@ module.exports = {
clean: true,
},
};

View File

@ -7,3 +7,4 @@ console.log('big-pic.png', bigPic);
console.log('small-pic.jpg', smallPic);
console.log('yueyunpeng.gif', yueyunpeng);
console.log('raw.txt', raw);

View File

@ -42,3 +42,4 @@ module.exports = {
],
},
};

View File

@ -10,3 +10,4 @@ now($('<div>').appendTo(document.body));
// 活动页中有一个新闻列表
news($('<div>').appendTo(document.body));

View File

@ -1 +1,2 @@
import('./bootstrap');

View File

@ -8,3 +8,4 @@ export default function (container) {
}
ul.html(html);
}

View File

@ -42,3 +42,4 @@ module.exports = {
}),
],
};

View File

@ -10,3 +10,4 @@ now($('<div>').appendTo(document.body));
// 新闻列表
news($('<div>').appendTo(document.body));

View File

@ -1 +1,2 @@
import('./bootstrap');

View File

@ -6,3 +6,4 @@ export default function (container) {
p.text(new Date().toLocaleString());
}, 1000);
}

View File

@ -41,3 +41,4 @@ module.exports = {
}),
],
};

View File

@ -294,3 +294,4 @@ module.exports = {

View File

@ -681,3 +681,4 @@
> 2. npm 检查缓存中是否有相同的模块,如果有,直接从缓存中读取安装
> 3. 如果本地和缓存中均不存在npm 会从 registry 指定的地址下载安装包,然后将其写入到本地的 node_modules 目录中,同时缓存起来。

View File

@ -88,3 +88,4 @@
40. 什么是 babel有什么作用
41. 解释一下 npm 模块安装机制是什么?