摘要: 转载自:http://www.yiichina.com/code/546 Yii2底层分析 我是从入口处分析的。$mysiteRoot/frontend首先:$mysiteRoot/frontend/index.php 从上面注释的位置入口 $config为配置文件,这里我们来看看是如何加载配置文件 阅读全文
posted @ 2017-09-01 14:39 潇潇雨木 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 将博客搬至CSDN 阅读全文
posted @ 2014-02-18 09:22 潇潇雨木 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 两者的格式和参数定义:call( thisArg [,arg1,arg2,… ] ); // 参数列表,arg1,arg2,...apply(thisArg [,argArray] ); // 参数数组,argArray上面两个函数内部的this指针,都会被赋值为thisArg,这可实现将函数作为另外一个对象的方法运行的目的一、call 的简单用法首先,我们先看个简单的例子(call): call-apply 然后,运行结果如下:global v... 阅读全文
posted @ 2014-02-17 19:26 潇潇雨木 阅读(230) 评论(0) 推荐(0) 编辑
摘要: URL routing is a popular approach to matching the contents of a URL to specific functionality within a web application. URL routes programatically present specific content to users based on the URL that they are visiting. It is a popular approach that has proven to be very effective.Something that m 阅读全文
posted @ 2014-01-17 10:53 潇潇雨木 阅读(522) 评论(0) 推荐(0) 编辑
摘要: AngularJs学习笔记系列第一篇,希望我可以坚持写下去。本文内容主要来自http://docs.angularjs.org/guide/文档的内容,但也加入些许自己的理解与尝试结果。一、总括本文用于解释Angular初始化的过程,以及如何在你有需要的时候对Angular进行手工初始化。二、Angular 注:里面的”ng-cloak”,这个是用于在angular.js编译完成之前(对!没错!是编译完成之前,不是angularjs加载完成之前。所以,如果想很好地避免这个情况,最好的办法是优化应用的加载流程,或者结合css对未编译的模版进行处理。而由于那万恶的ie6、7不支持属性选择器,所以最 阅读全文
posted @ 2014-01-17 09:48 潇潇雨木 阅读(211) 评论(0) 推荐(0) 编辑