-
1 votesanswersviews
Tic-Tac-Toe Win检查功能
我正在写一个tic tac toe游戏,“编码规则”的一部分是应该有一个'checkwin'函数来查看玩家是否赢了 . 我已经定义了两个名为'tttXArray'和'tttOArray'的变量来查看一个玩家是否连续三次输入水平,垂直或对角输入 . 这是以tttXArray为例的函数: function [won] = checkwin %Check to see whether the game ... -
3 votesanswersviews
touchableopacity onpress函数undefined(不是函数)React Native
我希望能够在点击TouchableOpacity按钮后导航到新屏幕,但是我收到一条错误信息 _this3.handleThisTap不是一个函数 . (在'this3.handleThisTap()'中,' this3.handleThisTap'未定义) import React, { Component } from 'react'; import { Text, StyleS...