📜  elte html 如果不更新 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:26.340000             🧑  作者: Mango

代码示例1
//methods like 'push' wont trigger the {#if} to update
//you need to dummy assign the value:
function addNumber() {
    numbers.push(numbers.length + 1);
    numbers = numbers;
}