發(fā)表文章時自動保存到剪貼板
更新時間:2006年10月27日 00:00:00 作者:
[Ctrl+A 全選 注:引入外部Js需再刷新一下頁面才能執(zhí)行]
eWebEditor調(diào)用方法
復(fù)制代碼 代碼如下:
<input type="hidden" value="" name="NewsContent" >
<iframe name="eWebEditor" ID="eWebEditor" src="eWebEditor/eWebEditor.asp?Id=NewsContent" frameborder="0" scrolling="no" width="100%" HEIGHT="100%"></iframe>
<script type="text/javascript">
function submitcontent() {
window.clipboardData.setData('Text',frames.eWebEditor.document.body.innerHTML);
}
</script>
<input type="submit" onclick="submitcontent();" value="確 定">
<iframe name="eWebEditor" ID="eWebEditor" src="eWebEditor/eWebEditor.asp?Id=NewsContent" frameborder="0" scrolling="no" width="100%" HEIGHT="100%"></iframe>
<script type="text/javascript">
function submitcontent() {
window.clipboardData.setData('Text',frames.eWebEditor.document.body.innerHTML);
}
</script>
<input type="submit" onclick="submitcontent();" value="確 定">
相關(guān)文章
uni-app微信小程序登錄授權(quán)的實現(xiàn)
這篇文章主要介紹了uni-app微信小程序登錄授權(quán)的實現(xiàn),文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-05-05
JavaScript中內(nèi)存泄漏的幾種情況總結(jié)
在JavaScript中,內(nèi)存泄漏通常是由于變量、對象、閉包、事件監(jiān)聽器等長期存在而沒有被釋放引起的。本文就來和大家總結(jié)一下常見的幾種情況以及解決方法吧2023-05-05
uni-app小程序中父組件和子組件傳值的實現(xiàn)實例
uniapp父子組件引用傳值,和vue的一樣,沒有小程序那樣的麻煩,下面這篇文章主要給大家介紹了關(guān)于uni-app小程序中父組件和子組件傳值的相關(guān)資料,文中通過實例代碼介紹的非常詳細(xì),需要的朋友可以參考下2022-08-08

