model1();
function model1() // 函数式声明
{
console.log('model1');
}
model2(); // 报错,不能先调用再声明
const model2 = function model12() // 函数表达式式声明
{
console.log('model2');
};
model2();
js函数声明与调用
最新推荐文章于 2024-04-24 21:40:41 发布
1862

被折叠的 条评论
为什么被折叠?



