当运行gatsby生成时,我会得到以下错误。
我知道如何修复它(例如,检查窗口的类型),但是我找不到该窗口的用法?我怎么知道它在哪?我怀疑节点模块,因为我自己的代码中没有很多窗口引用。
非常感谢
failed Building static HTML for pages - 10.845s
ERROR #95312
"window" is not available during server side rendering.
See our docs page for more info on this error: https://gatsby.dev/debug-
我想对BOM的结构有一个清晰的理解。
问题1:例如,我有一个html文档,只有一个元素<p id="1"> </p> iside <body></body>。当浏览器对html文档进行分析时,它开始在BOM树中构建DOM树,并且我的段落元素被转换成一个p对象,该对象被放置在DOM树的确定位置--window.document.lastChild(I have got the html object).lastChile(I have got the html object).firstChild(I have got the p
我试图从数据存储中创建一个链接列表,然后使用XTemplate循环并显示数据存储中的所有链接。我试图在一个模态窗口中显示链接。这是我的密码:
var win;
var tpl = new Ext.XTemplate("<p>Field1: {f1}, Field2: {f2} </p>").compile();
var data = {
f1: 'a',
f2: null
};
if(!win){
win = new Ext.Window({
el:'hello-win',
我需要两个浏览器窗口,一个是主窗口,另一个是子窗口,我想设置子窗口菜单,菜单不应该反映在主窗口。
app.on('ready', function() {
// Create new window
// this assign the mainwindow variable as a browserwindow with
// default parameter value which will take the entire page
mainWindow = new BrowserWindow({});
childWindow = new B