由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Node.js question: webpage always defaults to index.html
相关主题
Memory Usage问题有没有 buy programming webpage
How to display webpages 1 by 1 ?a website "programing" question
小公司的网站也要用memcached之类的cache吗?请高手指点 怎么建一个傻瓜数据库 (转载)
我的一个客户案例(high traffic),请大家批判分析指点any php experts?
git的官方文档真叫一个烂怎么用python download 网上的数据?
Android memory leak请教一个python urlopen的问题
cgi GET method: display results for the 1st timegoogle search
pdfjs displaying pdf issueJava可以自动填写webpage,然后submit吗? (转载)
相关话题的讨论汇总
话题: webpage话题: defaults话题: client话题: question话题: always
进入Programming版参与讨论
1 (共1页)
w*s
发帖数: 7227
1
In my server.js, i have this
app.get('/', function(req, res)
{
res.sendfile(path.resolve('../client/login.html'));
});
restart "node server.js", my webpage still displays ../client/index.html
directly by default.
What am i missing here ?
Thanks !
N***m
发帖数: 4460
2
browser caching?

【在 w*s 的大作中提到】
: In my server.js, i have this
: app.get('/', function(req, res)
: {
: res.sendfile(path.resolve('../client/login.html'));
: });
: restart "node server.js", my webpage still displays ../client/index.html
: directly by default.
: What am i missing here ?
: Thanks !

w*s
发帖数: 7227
3
app.use(express.static('../client/', {index: 'login.html'}))

【在 N***m 的大作中提到】
: browser caching?
1 (共1页)
进入Programming版参与讨论
相关主题
Java可以自动填写webpage,然后submit吗? (转载)git的官方文档真叫一个烂
help on perlAndroid memory leak
invalid opcodecgi GET method: display results for the 1st time
drag and drop a control in webpagepdfjs displaying pdf issue
Memory Usage问题有没有 buy programming webpage
How to display webpages 1 by 1 ?a website "programing" question
小公司的网站也要用memcached之类的cache吗?请高手指点 怎么建一个傻瓜数据库 (转载)
我的一个客户案例(high traffic),请大家批判分析指点any php experts?
相关话题的讨论汇总
话题: webpage话题: defaults话题: client话题: question话题: always