Useless setTimeout call (missing quotes around argument?)

前端 未结 5 1947

I have this sniplet of code in jQuery

$element.parent().children().last().hide().show(\'slide\', {direction : \'left\'}, 700, function () {
    $element.delay(20         


        
5条回答
  •  梦毁少年i
    2021-02-12 20:13

    There already exists a jQuery-method delay and it expects a string(queueName) and not a function as parameter. Choose another name for your delay-method to avoid conflicts.

提交回复
热议问题