同时,我们可以用TypeScript网站上的一个例子在Excel里面运行。 下面是一个简单的判断语句,如果Counter比100小,那么就给它加一输出 const max = 100; let counter = 0; if (counter < max) { counter++; } console.log(counter); // 1 运行!