The reason given is that this approach after jquery1.7 was abolished,
1.7 version after switching to .on () method of
usage before:
.live (Events, function)
New method:
.on (eventType, Selector, function)
example:
before:
$ ( '# MyID') Live ( 'the Click', {function.
Alert (. 1)
})
after:
. $ ( 'body') ON ( 'the Click', '#myid', function {
Alert ( 1)
})
TypeError: $(...).live is not a function
Guess you like
Origin www.cnblogs.com/qianzf/p/12518903.html
Recommended
Ranking