Home > Web Front-end > JS Tutorial > body text

JS实现即点即编辑功能代码_javascript技巧

WBOY
Release: 2016-05-16 18:59:27
Original
1262 people have browsed it

效果如图所示:

分享代码喽:

" + "" + ""; newTd.onclick = Function("switchShow(true, "+currEndLineId+", "+currTab+")"); } function saveContent(){ var inputContentDiv = document.getElementById("inputContentDiv_"+currTab+"_"+eval("globalLineId_"+currTab)); var inputContent = document.getElementById("inputContent"); if(inputContentDiv !=null){ inputContentinputContentDiv.innerText = inputContent.innerText; } } function deleteItem(){ var inputTd = document.getElementById("inputTd_"+currTab+"_"+eval("globalLineId_"+currTab)); var inputTab = document.getElementById("inputTab_"+currTab); var inputRows = inputTab.rows; var inputCells ; var rowsLength = inputRows.length; if (inputTd!=null){ for(i=1; i  
配置预算项目
教育学费
住宿费
生活费
其他
配置适用地区
西北地区
福建省
北京市
配置预算方案
低成本预算方案
普通预算方案
豪华预算方案

[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!