我真的很喜欢这段代码(https://github.com/ampproject/amphtml/blob/master/extensions/amp-consent/0.1/cmps.js)
(getMode().test || getMode().localDev)
在浏览器中加载示例文件时为true。
如何确保本地开发箱中的localDev为真?
我真的很喜欢这段代码(https://github.com/ampproject/amphtml/blob/master/extensions/amp-consent/0.1/cmps.js)
(getMode().test || getMode().localDev)
在浏览器中加载示例文件时为true。
如何确保本地开发箱中的localDev为真?