eg.点击按钮即可实现将input标签中的内容复制到剪切板里
<input id="input-link" type="text" ng-model="mode.url" class="link-input">
<button class="copy-btn" ng-click="copyLink()">复制</button>
function copyLink(){
alert("copy");
var ele = document.getElementById("input-link");
ele.select();
document.execCommand("Copy");
alert("复制成功");
$uibModalInstance.close();
}