JS实现tic tac toe
项目地址:https://github.com/Miever1/todo-list-js
基本效果:
具体实现:
html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="./node_modules/normalize.css/normalize.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div class="game">
<div class="board">
<div class="board-row">
<button class="sqare"></button>
<button class="sqare