Python批量替换文件内容,支持嵌套文件夹
import os
path="./"
for root,dirs,files in os.walk(path):
for name in files:
#print name
if name.endswith(".html"):
#print root,dirs,name
filename=root+"/"+name
f=open(filename,"r")
filecontent=""
line=f.readline()
while line
双击空白或者文字变成input框修改内容:
html代码
{$vo.intro}
{$vo.address}
js代码
//双击修改
function ShowElement(element,abc){
// console.log(abc);
var list = abc;
var me = element;
var oldht