[
{
"author": "test",
"date": "2015年9月20日",
"subtitle": "",
"tags": [
"api",
"微信",
"开发文档"
],
"title": "test WebApi"
},
{
"author": "Waylan LimbergJohn Doe",
"date": "October 2, 2007",
"subtitle": "",
"tags": [],
"title": "python2编码问题"
}
]
以上的是一个json文件,用ajax方法可以读取。
现在就是需要把博客里的文章标题和分类动态修改。如下图。
但是文章会有很多,涉及到的标签也有很多。难道得每个标签都用不同的id控制吗?
感觉思考出了岔子,求解。
白魔法(如果不是全局替换)
黑魔法(如果只是全局替换)