platform.getClipboardText

The 'getClipboardText' function retrieves text content from the system's Clipboard.
getClipboardText函数读入剪贴板文本

  • Prototype: platform.getClipboardText(sSubType);
  • Parameters:
    1. sSubType: value of the sub type can be either 'plain' or 'html';
      类型可以是纯文本或者html
  • Return Value: string of text on clipboard;
  • Example:
    var sTxt=platform.getClipboardText('plain');