方法一:
// template
{{a | data}}
//script
data:{
a: Date.now()
}
filters: {
data:function (input) {
var d = new Date(input);
var year = d.getFullYear();
var month = d.getMo
结论:Go HTTP standalone >(优于) Nginx proxy to Go HTTP >(优于) Nginx fastcgi to Go TCP FastCGI
原文链接:http://www.oschina.net/translate/benchmarking-nginx-with-go?from=
1.配置nginx/FastCGI
This is actually pretty easy. I assume you already have some experience configuring nginx.conf. (Each install seemingly has different defaults as to the conf file"s location,