Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
学习进行实验。
我如何获得全局变量?
@reds:#bb22cc; div{ @reds:#aaaa88; p{ color:@reds; background://how to get global @reds:#bb22cc; } }
你不能,只是使用不同的变量名。
@reds: #bb22cc; div { @reds2: #aaaa88; p{ color: @reds2; background: @reds; } }
@reds2不会泄露到全局范围。
@reds2