以下是我的示例代码:
Class School extends React.Componenet {
deleteStudent = () => {
// Logic of delete student goes here.
}
openNewForm = () => {
// Logic of new form goes here.
}
render() {
return(
<div>
<div>
/* Here goes my view part */
我正在使用react,并有一个元素使用CSS模块进行样式设计,如下所示:
<div className={styles.book__title}>Title: {book.title}</div>
因为类名是散列的,所以编译后的输出类似于:
<div class="book__title_adsfj4">Title: The Lord of the Rings</div>
我在按钮上添加了一个事件侦听器,当按下按钮时,该按钮将“title”类添加到该元素中,以便为该特定类提供额外的样式,如下所示:
<div class=
我试图在同一个按钮上显示数据,使用angularjs单击,.I可以按升序显示数据,.But如何显示在相同按钮上的降序(作为jquery中的切换)。我会告诉你问题,我的表头上有按钮"V“,在那个点击中,我按升序排序列,.can,我们在相同的按钮上按降序。
当用户第一次单击colomn ..预期结果是这样的,我能够做到这一点。
Calls Royal Dutch sell
p a royal data
Xgtyu test royal dat
但是,如果他再次单击相同的按钮.Then,它将显示这个预期结果。
Xgtyu tes