我现在只知道jQuery的基础知识,但我很好奇当我点击背景时如何使一些事情发生。
我试着在背景上做一个onClick
事件,但是每当我点击Div -不是背景,在这种情况下,我不想触发事件-它触发事件。Div位于背景的Div中
jsFiddle
我现在只知道jQuery的基础知识,但我很好奇当我点击背景时如何使一些事情发生。
我试着在背景上做一个onClick
事件,但是每当我点击Div -不是背景,在这种情况下,我不想触发事件-它触发事件。Div位于背景的Div中