所以我有以下代码用于比较两列中的值,但它是基于值是否在任一列中,而不是并排比较。
有没有办法轻松修改代码进行并排比较? (意思是我想要检查单元格A1 = B1,A2 = B2,A3 = B3等)
import React, {Component} from 'react';
import Checkbox from 'react-checkbox';
import Login from './Login';
import FileImport from './FileImport'
import '../Styles/Attendance.css'
import JsonTable from 'react-json-table';
class Attendance extends Component{
render(){
var checked = null;
return(
<div>
<Login />
<h3 className="text-center"> Attendance sheet for the student</h3>
<span className="heading">
<label id="heading-font"> Roll Number</label>
<label id="heading-font"> Name of the Student</label>
<label id="heading-font"> Attendance </label>
<input type="date" />
</span>
<FileImport />
</div>
);
}
}
export default Attendance;