我有一个Bash shell脚本,我想暂停执行,直到用户按下一个键.在DOS中,使用"pause"命令可以轻松完成.我可以在脚本中使用Linux等价物吗?
我有代码:
let a = {a: 'a', b: 'b'};
let b = {c: 'c', d: 'd'};
let c = {...a, ...b};
Run Code Online (Sandbox Code Playgroud)
在chrome / firefox /... 中它的 display: c = {a: 'a', b: 'b', c: 'c', d: 'd'},但在microsoft edge 中它抛出 error Expected identifier, string or number。
我尝试使用cdn.polyfill.io,https://babeljs.io/docs/en/babel-polyfill但没有运气。
我可以做些什么来在microsoft edge 中运行我的webpack代码?