es6-template-literals-nested
&es6-template-literals-condition
orderGift += `
<div class="order-gift cut-line">
<div class="title">
<span class="gf-lf">赠豆</span>
<span class="gf-rt">${parseFloat(dadouoff).toFixed(2)}</span>
</div>
${
totalReduceMoney
?
`
<div class="title">
<span class="gf-lf">满减</span>
<span class="gf-rt">${parseFloat(totalReduceMoney).toFixed(2)}</span>
</div>
`
:
``
}
<div class="money">
<span class="gf-lf">订单金额</span>
<span class="gf-rt">${parseFloat(sum).toFixed(2)}</span>
</div>
</div>
`;
Web/API/Notification
https://gist.github.com/xgqfrms-GitHub/bab5cd08a4c85707ce10dd5e0a1057e1
api
https://developer.mozilla.org/zh-CN/docs/Web/API/notification/onclick
https://developer.mozilla.org/zh-CN/docs/Web/API/notification#静态方法
https://developer.mozilla.org/zh-CN/docs/Web/API/notification/onshow
https://developer.mozilla.org/zh-CN/docs/Web/API/notification/onerror
demo
https://developer.mozilla.org/zh-CN/docs/Web/API/Notification/icon
view-source:https://mdn.github.io/emogotchi/
https://mdn.github.io/emogotchi/main.js
https://github.com/mdn/emogotchi/blob/gh-pages/manifest.webapp
https://github.com/ufo-github/emogotchi