【发布时间】:2018-11-06 07:07:56
【问题描述】:
我正在尝试使用运行以下脚本的按钮将文本从文本区域复制到剪贴板。 我确实收到了复制文本的警报,但是当我尝试将其粘贴到某处时,值没有被复制。
function copmycomment() {
/*get the text area*/
var copyCo = app.pages.NewPage.children.Panel2.children.tao;
/*select the text area*/
copyCo.focus();
/*copy the value*/
document.execCommand("copy");
alert("copied the text:" + copyCo.value);
}
【问题讨论】:
标签: javascript google-app-maker