摘要: nodejs 可以直接在返回中使用html标签,例如下面的格式,返回 hello world 将会使用 h1 字体。 app.get('/html',function(req,res){ res.status(200).send('<h1>hello world</h1>');}); "E" is 阅读全文
posted @ 2016-05-25 17:49 zhoudingzhao 阅读(6344) 评论(0) 推荐(0) 编辑
摘要: 1、toggleClass() 如果对象有class属性,则删除; 如果没有class属性,则加上。 <style> .hide{ display: none; } </style> <div id='nid'>12<a>google</a>34</div> $('#nid').toggleClas 阅读全文
posted @ 2016-05-25 00:25 zhoudingzhao 阅读(162) 评论(0) 推荐(0) 编辑