摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <script src="js/react.js"></script> <script src="js/react-dom.js"></scrip 阅读全文
posted @ 2017-08-09 09:16 ThisCall 阅读(121) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <script src="js/react.js"></script> <script src="js/react-dom.js"></scrip 阅读全文
posted @ 2017-08-09 09:14 ThisCall 阅读(300) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <script src="js/react.js"></script> <script src="js/react-dom.js"></scrip 阅读全文
posted @ 2017-08-09 09:12 ThisCall 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 手机的屏幕比较小,宽度通常在600像素以下;PC的屏幕宽度,一般都在1000像素以上(目前主流宽度是1366×768)设置相应的min-width和max-width值 所以响应式设计一般对600px下,1000px上针对各版本做@media细化。 主要的有: 1.第一个断点群体就是针对于智能手机设 阅读全文
posted @ 2017-08-06 09:14 ThisCall 阅读(4041) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="zh-cn"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv= 阅读全文
posted @ 2017-08-06 07:49 ThisCall 阅读(559) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="zh-cn" ng-app="myApp"><head> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> <meta htt 阅读全文
posted @ 2017-08-04 13:14 ThisCall 阅读(216) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/ywl570717586/article/details/51364849 阅读全文
posted @ 2017-08-04 12:51 ThisCall 阅读(162) 评论(0) 推荐(0) 编辑
摘要: angular.module('cookieStoreExample', ['ngCookies']) .controller('ExampleController', ['$cookieStore', function($cookieStore) { //存进cookie $cookieStore 阅读全文
posted @ 2017-08-04 12:08 ThisCall 阅读(296) 评论(0) 推荐(0) 编辑
摘要: var app=angular.module('kaifanla',['ng','ngRoute']);app.config(function($routeProvider){ //添加路由 $routeProvider .when('/文件名',{ templateUrl:'tpl/start.h 阅读全文
posted @ 2017-08-04 12:04 ThisCall 阅读(690) 评论(0) 推荐(0) 编辑
摘要: invoke() 使用注入器的invoke()方法,可以直接调用一个用户自定义的函数体,并通过函数参数 注入所依赖的服务对象,这是AngularJS推荐和惯例的用法: angular.injector(['ng']) .invoke(function($http){ //do sth. with $ 阅读全文
posted @ 2017-08-04 12:00 ThisCall 阅读(454) 评论(0) 推荐(0) 编辑