/* eslint-disable */
import { setGlobalHandler } from 'ErrorUtils';
/* eslint-enable */
setGlobalHandler((error) => console.warn(error)); // eslint-disable-line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
// The number of spaces a tab is equal to. This setting is overriden based on the file contents when `editor.detectIndentation` is on. | |
"editor.tabSize": 2, | |
// Format a file on save. A formatter must be available, the file must not be auto-saved, and editor must not be shutting down. | |
"editor.formatOnSave": true, | |
// Controls whether the editor should render indent guides | |
"editor.renderIndentGuides": true, | |
// TypeScript | |
// Defines space handling after function keyword for anonymous functions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function drawLayer02Label(canvasObj, text, textBeginX, lineEndX) { | |
var colorValue = '#04918B'; | |
var ctx = canvasObj.getContext("2d"); | |
ctx.beginPath(); | |
ctx.arc(35, 55, 2, 0, 2 * Math.PI); | |
ctx.closePath(); | |
ctx.fillStyle = colorValue; | |
ctx.fill(); | |
ctx.moveTo(35, 55); | |
ctx.lineTo(60, 80); |
adb connect [ip]:[port]
连接机顶盒(默认端口为5555)
adb devices
查看所有连接设备 名称、ip、端口已经状态( device 或 offline )
adb install [apk 安装包所在路径(如:d:\a.apk)]
将对应路径的 apk 安装包安装到机顶盒
adb install -r [apk 安装包所在路径(如:d:\a.apk)]
将对应路径的apk 安装包强制(覆盖)安装到机顶盒
adb -s [设备名称或设备IP:端口] install [apk 安装包所在路径(如:d:/a.apk)]
当 adb 连接多个设备时,将 apk 安装到指定设备中
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"></meta> | |
<meta | |
name="viewport" | |
content="width=device-width, initial-scale=1.0" | |
></meta> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function *foo() { | |
var x = yield 2; | |
z++; | |
var y = yield (x * z); | |
console.log( x, y, z ); | |
} | |
var z = 1; | |
var it1 = foo(); | |
var it2 = foo(); |