1. less循环
2. 内置函数`unit` `percentage` `image-width` `image-height`
3. `/`在background中的异常
4. 变量有作用域,不同的作用域可以使用同名的名字,(乱入:padding单位为%是相对宽度的)
与html结构对应,便于维护
.agreement {| // 希望这个会好点,但是Contains的时间复杂度高了 | |
| class LinkedSet<T> | |
| where T : class | |
| { | |
| private List<T> _set = new List<T>(); | |
| public void Add(T elem) | |
| { | |
| _set.Add(elem); | |
| } |
| public class LinkedSet<T> | |
| where T : LinkedSetElement | |
| { | |
| private LinkedSetLinker<T> _top; | |
| private LinkedSetLinker<T> _bottom; | |
| public void Add(T elem) | |
| { | |
| LinkedSetLinker<T> linker = new LinkedSetLinker<T>(elem); | |
| linker.Next = _top; |
| // 其实第一眼,不用泛型不就得了吗,不进行封拆箱,我能想到是下面的 | |
| class TicksToDateTimeCaller | |
| { | |
| public object Call (dynamic arg) | |
| { | |
| object result = null; | |
| try | |
| { | |
| result = new DateTime(arg); | |
| } |