阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      插件 jQuery.nearest 中文API文档

      插件 jQuery.nearest 中文API文档 https://github.com/gilmoreorless/jquery-nearest jQuery Nearest Element plugin

      Full documentation is at http://gilmoreorless.github.io/jquery-nearest/

      Demo: http://gilmoreorless.github.io/jquery-nearest/demo.html

      Method signatures:

      • $.nearest({x, y}, selector) - find $(selector) closest to x/y point on screen
      • $(elem).nearest(selector) - find $(selector) closest to elem
      • $(elemSet).nearest({x, y}) - filter $(elemSet) and return closest to x/y point on screen

      Reverse logic:

      • $.furthest()
      • $(elem).furthest()

      Intersecting/touching:

      • $.touching()
      • $(elem).touching()
      目录
      本文目录
      目录