11-3.txt
来自「Javascript语言开发经典教程开发」· 文本 代码 · 共 12 行
TXT
12 行
// This is another version of the add_to_totals() function. It doesn't// work, though, because instead of changing the array itself, it tries to // change the reference to the array.function add_to_totals2(totals, x){ newtotals = new Array(3); newtotals[0] = totals[0] + x; newtotals[1] = totals[1] + x; newtotals[2] = totals[2] + x; totals = newtotals; // This line has no effect outside of the function.}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?