Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

测试师大暨大卡了手动将阿里

$
0
0

注意,这里的访问都是用点来继承的,比如post.author.nickname

最后,如果说在以后的开发中,模板变得非常多,但是每个模板中,都有固定项目是不能变的,那如何操作呢…. 比如一个页面顶端有按钮,在其他页面中也有,那不可能每个页面中都写吧

 m = Topic.get(id)
    md=m.content
    mystring= md.split('\n')
    res=''
    for line in mystring:
        html = markdown2.markdown(line)
        res += html
    print(res)
    m.content=res

Viewing all articles
Browse latest Browse all 14821

Trending Articles