全部文章
public class Util { /** * N的阶乘 * * @param n * @return */ public static int factorial(int n) { if (n == 1) { return 1; } else { return n * factorial(n ...
事件的绑定,像js那样,可以通过on方法定义或者说是绑定一个事件。在yii2中,事件的绑定是通过yii\base\Component 的on方法进行操作的,很显然,同js操作一样,我们在定义事件的同时,需要为其绑定一个回调函数。 看下例子,先写下一个控制器中,用on绑定事件,然后在方法里面用trig ...
玩转JS系列之代码加载篇 一开始我们这样写js <script type="text/javascript"> function a(){ console.log('a init');}function b(){ console.log('b init'); a(); } </script> 随着功 ...
Css 1)text-indent:;首行缩进 2)disabled="true"设置input框不可以点击 3)Css:xx!important;声明提前优先级最高。。!important优先级最高 4)readonly="true"设置input框不可以点击(用disabled设置之后不能获取表 ...
// +---------------------------------------------------------------------- //---------------------------------- // 股票数据调用示例代码 - 聚合数据 // 在线接口文档:http://... ...
As we all know,a palindrome number is the number which reads the same backward as forward,such as 666 or 747.Some numbers are not the palindrome numbe ...
dwa是很成熟的一套适用于差动轮式机器人的局部规划方法,项目需要,对其源码进行解析,看看有那些改进的点 有空把详细的解析发出来,自己理理思路 1.计算速度 2.获取轨迹 3.评价轨迹 4.评价机制 5.参数说明 ...
// <![CDATA[ this.sitemapstyler = function(){ var sitemap = document.getElementById("sitemap") if(sitemap){ this.listItem = function(li){ if(li.getEle ...
关于FPU,比较运算有几个地方需要关注,mark一下。 he result of the comparison is reported in the condition codes field of the Status Word as follows (the C1 bit is not used ...
CoreOS是一个基于Docker的轻量级容器化Linux发行版,专为大型数据中心而设计,旨在通过轻量的系统架构和灵活的应用程序部署能力简化数据中心的维护成本和复杂度。CoreOS作为Docker生态圈中的重要一员,日益得到各大云服务商的重视,目前已经完成了A轮融资,发展风头正劲。InfoQ希望《C ...