📜  document.title 你点击了 count 次 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:49.680000             🧑  作者: Mango

代码示例1
import React, { useState, useEffect } from 'react';
function Example() {
  const [count, setCount] = useState(0);

  useEffect(() => {    document.title = `You clicked ${count} times`;  });
  return (
    

You clicked {count} times

); }