我不明白为什么当我将匿名函数传递给我的 html 输入组件的 @input 字段时它起作用,但是当我调用内部具有完全相同代码的真实函数时它不起作用。这是不工作时的代码:
Text : {{text}}
Characters : {{numberChar}}
Words : {{numberWords}}
但是当我简单地说:
numberChar = text.length"/>
numberChar 值已正确修改并显示。 我正在启动 Vuejs,所以我错过了一些东西,但我已经为此苦苦挣扎了一个小时......
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号