Copy to clipboard using Angular and clipboard.js(Copy without flash)
借 angular2 的势头写一个超简单的 clipboard 地址: https://github.com/doxiaodong/ng2-clip 使用 <button clip=“The word you want to copy” (onClip)=“callback($event)”></button> <button [clip]="‘The word you want to copy’" (onClip)=“callback($event)”></button>
希望有人用,哈哈
1 回复
Api设计得很简朴