介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| /* | |
| * author: [email protected] | |
| * version: 0.1 | |
| * date: 2011/01/24 | |
| * description: I am confused by browser version detection. What I need is blocking the browsers which are ie6/ie7/ff3 , however, I can't easily detect browser version. Cause I got the version which is like that "6.0.2900.5512.xpsp_sp3_gdr.100427-1636". | |
| so I write an easy plugin to check the browser version and you can also use callback to block these kind of old fashion browser or do anything else. | |
| For example: | |
| $.dectectBrowserVersion({ | |
| filter: { |