a function or method that changes the value of one or more properties of an object in a programming language.
“mutator”词性变化补充纠错
名词
“mutator”用法和例子补充纠错
1. The mutator method allows us to modify the value of the object's private member variable.
2. In object-oriented programming, mutators are commonly used to enforce data encapsulation and control access to an object's properties.
SHOW FULL COLUMNS FROM `tool_word` [ RunTime:0.002572s ]
SELECT `id`,`word`,`british`,`american`,`jbjs`,`wlsy`,`cx`,`lz` FROM `tool_word` WHERE `switch` = 1 AND `id` = 60437 LIMIT 1 [ RunTime:0.001482s ]
UPDATE `tool_word` SET `views` = `views` + 1 WHERE `id` = 60437 [ RunTime:0.014204s ]
SELECT `id`,`word` FROM `tool_word` WHERE `id` IN (65270,83206,61378,20779,85694,29625,11686,83017,42083,95723,66449,31109,44404,40030,66056,59069,4542,30311,16006,39957,13034,67393,97593,65385,83744,3796,62833,12319,84907,12457) AND `switch` = 1 ORDER BY `id` DESC [ RunTime:0.003378s ]
SELECT `id`,`word` FROM `tool_word` WHERE `id` < 60437 AND `switch` = 1 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.002430s ]
SELECT `id`,`word` FROM `tool_word` WHERE `id` > 60437 AND `switch` = 1 ORDER BY `id` LIMIT 1 [ RunTime:0.001055s ]