springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-18 12:17:07
148
这是我的代码,我想在下面添加一张图片:
function createWindow() {
var myWindow = window.open("", "MsgWindow", "width=500,height=500");
myWindow.document.write("<h1>A test: </h1>" +
" <p> <b>Something bold: </b> text </p>");
// I want to add an image here (inside the widow) but I'm not sure how
}
顺晟科技:
function createWindow() {
const myWindow = window.open('', 'My New Window', 'width=500,height=500')
myWindow.document.body.innerHTML = `
<h1>A test:</h1>
<p> <b>Something bold: </b> text </p>
<img src="https://i.imgur.com/qVr8o7q.jpeg" />
`;
}
您可以将图像添加到myWindow
的HTML文档中,如下所示:
myWindow.document.write("<img src='https://i.imgur.com/RUKhJjI.png' width=256 height=256>");
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11