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