var newDataArg = dataArg; newDataArg.xxx = "xxxx"; // wrong - dataArg is modified. var newDataArg = Object.assign({}, dataArg); newDataArg.xxx = "xxxx";
沒有留言:
張貼留言