我在页面上使用jQuery跳转/滚动到ID。
这从其他具有锚点的页面中运行,如
<a href="other-page.php#jump-id">Jump & Scroll to ID on other page</a>
在同一页上,只有锚,如
<a href="#jump-id">Jump / Scroll to ID on the same page</a>
这不是最好的解决方案,因为我必须更改我的导航菜单,但它有效(我在页面上加载了另一个带有其他标记的菜单)。
现在我正在寻找一种方法,将偏移量为-23
我想将添加到带有ts的nextjs中,但是我得到了下一个错误:
Server Error
SyntaxError: Cannot use import statement outside a module
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
<unknown>
import React, { useState } from 'react';
import Calenda
我已经学习了几天,我写了一个简单的项目(单页应用程序)。问题是我的页面没有显示任何东西-这是一个空白页。
App.js
import './App.css';
import {BrowserRouter as Router,Routes,Route,} from "react-router-dom";
import { Home } from './components/Home';
import { Wallet } from './components/Wallet';
function App() {
return