/xe-command

test demo

Primary LanguageJavaScriptMIT LicenseMIT

xe-command

npm version npm downloads gzip size: JS npm license

Installing

npm install xe-command --save

Get on unpkg and cdnjs 上获取

<script src="https://unpkg.com/xe-command/dist/xe-command.min.js"></script>

Example

Run this demo on jsfiddle.net

document.querySelector('.button').addEventListener('click', evnt => {
  if (XECommand.copy('Copy this content to the clipboard')) {
    alert('Copy success.')
  } else {
    alert('The browser is not supported.')
  }
})

License

Copyright (c) 2017-present, Xu Liangzhan