1. go web代码设置Cookie时,一定先使用http.SetCookie设置Cookie,再调用http/template中的Execute方法生成html内容。若顺序颠倒的话,则会导致设置的Cookie不起作用。