新手求教,关于加载图片。
nodejs,如果不用express框架, 用代码fs.readFile(__dirname + ‘message.html’,‘utf-8’,function(err, data){加载html到客户端画面,message.html中样式表的背景图片(<body style=‘background:url(“img/body-background.jpg”)’>)怎么处理? 谢谢各位大神。
nodejs,如果不用express框架, 用代码fs.readFile(__dirname + ‘message.html’,‘utf-8’,function(err, data){加载html到客户端画面,message.html中样式表的背景图片(<body style=‘background:url(“img/body-background.jpg”)’>)怎么处理? 谢谢各位大神。