###移动技术
根据mobileTech项目整理而成,原文地址。
####webapp实践的总结
| # 规则配置仅供参考,适用于 1.2.0 (476) 及其后续版本; | |
| # 包含 Proxy Group、URL Rewrite 特性; | |
| # 包含 Reject 规则,用于拦截广告、行为分析、数据统计; | |
| # 屏蔽 Hao123、百度搜索,放行百度地图、百度外卖、百度音乐、百度云盘、百度百科。 | |
| [General] | |
| # warning, notify, info, verbose | |
| skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local | |
| bypass-tun = 0.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
| loglevel = notify |
| function byteLen(target) { | |
| var byteLength = target.length, i = 0; | |
| for (; i < target.length; i++) { | |
| if (target.charCodeAt(i) > 255) { | |
| byteLength++; | |
| } | |
| } | |
| return byteLength; | |
| } |
| // repeat string like repeat('ruby',2) get rubyruby | |
| // version 1 | |
| function repeat(target, n) { | |
| return (new Array(n+1)).join(target); | |
| } | |
| // version 2 | |
| function repeat(target, n) { | |
| return Array.pototype.join.call({ | |
| length: n + 1 |
| var myVariable = 42 | |
| let myVariable = 42 | |
| let explicitDouble: Double = 70 | |
| let lable = "The width is " | |
| let width = 94 | |
| let widthLable = label + String(width) | |
| let apples = 3 | |
| let oranges = 5 |
| // a simple object extend function | |
| function extend(destination, source) { | |
| for (var property in source) { | |
| destination[property] = source[property]; | |
| return destination; | |
| } | |
| } | |
| // emulation Object.keys | |
| Object.keys = Object.keys || function(obj) { |
###移动技术
根据mobileTech项目整理而成,原文地址。
####webapp实践的总结
| [ | |
| { | |
| name:"HTML5", | |
| uri:"http://www.w3.org/TR/html5/single-page.html", | |
| category:"markup" | |
| }, | |
| { | |
| name:"HTML 5.1", | |
| uri:"http://www.w3.org/TR/html51/single-page.html", | |
| category:"markup" |
| data:text/html, | |
| <style type="text/css"> | |
| #e { | |
| position:absolute; | |
| top:0; | |
| right:0; | |
| bottom:0; | |
| left:0; | |
| font-size:16px; | |
| } |