单击事件执行功能

时间:2017-08-05 13:05:06

标签: knockout-2.0

我对knockoutjs很新,我似乎无法找到有关如何将click事件绑定到此元素的任何信息。你能帮忙吗?

1 个答案:

答案 0 :(得分:0)

# Subset for year=2013
sub<-brfss2013 %>% filter(iyear == "2013")
dim(sub)
#[1] 486088    330
length(which(is.na(sub$iyear))==T)
#[1] 0

sub2<-filter(brfss2013, iyear == "2013")
dim(sub2)
#[1] 486088    330
length(which(is.na(sub2$iyear))==T)
#[1] 0

sub3<-brfss2013[brfss2013$iyear=="2013", ]
dim(sub3)
#[1] 486093    330
length(which(is.na(sub3$iyear))==T)
#[1] 5

sub4<-subset(brfss2013, iyear=="2013")
dim(sub4)
#[1] 486088    330
length(which(is.na(sub4$iyear))==T)
#[1] 0

可在此处找到更多信息:http://knockoutjs.com/documentation/binding-syntax.html