lz本身的代码也有问题,哪里说明for中不能goto跳转了?- @echo off
- for /l %%t in (1,1,10) do (
- :break2
- echo world
- for /l %%y in (1,1,6) do (
- if %%y EQU 3 goto break1
- )
- :break1
- echo hello
- )
- pause
复制代码
- @echo off
- for /l %%t in (1,1,10) do (
-
- for /l %%y in (1,1,6) do (
- if %%y EQU 3 goto break2
- )
- :break1
- echo hello
- )
- pause
- :break2
- echo world
- pause
复制代码
|