摘要:
1 private SearchField _searchField; 2 private string _searchText; 3 private ReorderableList _choicesList; 4 private List<string> _allListItems; 5 6 pu 阅读全文
摘要:
内嵌函数可以访问外包函数的局部变量,而这些局部变量则称为该内嵌函数的外部局部变量(或者upvalue) 1 function A(n) 2 3 function A_1() --n就是这个内嵌函数的upvalue 4 print(n) 5 end 6 7 return A_1 8 end 9 10 阅读全文