This file contains 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
if (!document.getElementById('printFrame').contentWindow.document.execCommand('print', false, null)) { | |
document.getElementById('printFrame').contentWindow.focus(); | |
document.getElementById('printFrame').contentWindow.print(); | |
} |
This file contains 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 (window, document) { | |
if (window.canvasqt == undefined) | |
window.canvasqt = {}; | |
if (window.canvasqt.arrow != undefined) | |
return; | |
//旋转坐标 | |
var scrollXoy = function (p, theta) { |
This file contains 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
替换国内204服务器 | |
adb shell "settings put global captive_portal_server g.cn" |
This file contains 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
//开启飞行模式 | |
settings put global airplane_mode_on 1 | |
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true | |
//关闭飞行模式 | |
settings put global airplane_mode_on 0 | |
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false | |
应用: | |
nexus 6p 国内激活时调过激活 |