标签: javascript html node.js iframe module
我尝试在sample.html内的iframe中显示index.html,我想使用NodeJs显示index.html。
sample.html
iframe
index.html
当我显示index.html时,我可以看到一个空白框。但是,当我通过双击在浏览器上本地打开该索引时,它可以正常工作。我该怎么做才能解决这个问题?
任何人,请帮助。
答案 0 :(得分:0)
为此,我必须使用快递。 在使用任何文件之前,我们需要使用 express.static 告诉节点使用这些文件。
not exists