阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      插件 jQuery.ImgAreaSelect 中文API文档

      插件 jQuery.ImgAreaSelect 中文API文档 https://github.com/odyniec/imgareaselect

      Quick Usage Instructions Download the plugin, unzip it, and copy the JavaScript and CSS files to your website/application directory. Load the files in the

      section of your HTML document.

      <head>
        ...
        <link rel="stylesheet" type="text/css" href="css/imgareaselect-default.css" />
        <script type="text/javascript" src="scripts/jquery.min.js"></script>
        <script type="text/javascript" src="scripts/jquery.imgareaselect.pack.js"></script>
        ...
      </head>
      

      Then, to enable selection on an image, wrap it in a jQuery object and call the imgAreaSelect() method:

      <script type="text/javascript">
      $(document).ready(function () {
          $('img#photo').imgAreaSelect({
              handles: true,
              onSelectEnd: someFunction
          });
      });
      </script>
      

      » Read documentation

      http://odyniec.net/projects/imgareaselect/usage.html

      目录
      本文目录
      目录