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
| apply plugin: 'com.android.application' | |
| def releaseTime() { | |
| return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC")) | |
| } | |
| Properties props = new Properties() | |
| props.load(new FileInputStream(file("signing.properties"))) | |
| android { | |
| compileSdkVersion 22 | |
| buildToolsVersion "23.0.2" |
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
| .flex { | |
| display: -webkit-box; | |
| display: -moz-box; | |
| display: -ms-flexbox; | |
| display: -webkit-flex; | |
| display: flex; | |
| } | |
| .flex.flex--reverse { | |
| -webkit-box-orient: horizontal; |
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 name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <title>Auto play html audio in iOS WeChat InAppBrowser the right way</title> | |
| </head> | |
| <body> | |
| <h1>在 iOS 微信浏览器中自动播放 HTML5 audio(音乐) 的正确方式</h1> | |
| <p>核心原理: 在微信的JS-API 中 play 一下 audio 即可达到自动播放的目的(应该是微信自己做了处理)</p> |
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
| /** | |
| * @param {String} msg 错误信息 | |
| * @param {String} url 出错的文件 | |
| * @param {Long} line 出错代码的行号 | |
| * @param {Long} col 出错代码的列号 | |
| * @param {Object} error 错误的详细信息,Anything | |
| */ | |
| window.onerror = function(msg,url,line,col,error){ | |
| //没有URL不上报!上报也不知道错误 | |
| if (msg != "Script error." && !url){ |