問題タブ [meta-method]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
48 問題
0
投票する
0
に答える
41
参照
lua - 割り当てられた値が突然消えました。説明はありますか?
1.既に に割り当てvてN[i]印刷しましたが、それでも 10t[0]になりましたnil。
__newindex2.ループに入れないとメタメソッドが動かないのはなぜですか? (ループの外に置くとt[0] = 10、whileループ内のメタメソッドも動かなくなります)