运算符 算术:+ 加、- 减、* 乘、/ 除、% 取模(取余数)alert(12%5) 弹出2 取余数隔行变色(取模) <script> window.onload=function () { var aLi=document.getElementsByTagName('li'); for(var ...
分类:
编程语言 时间:
2016-11-02 18:03:45
阅读次数:
165
前言 本次主要是实现一个Android应用,实现静态广播、动态广播两种改变 widget内容的方法,即在上篇博文中实验的基础上进行修改,所以此次实验的重点是AppWidget小部件的实现啦~ 首先,我们简单说一下Widget是一个啥玩意~ 应用程序窗口小部件(Widget)是微小的应用程序视图,可以 ...
分类:
移动开发 时间:
2016-11-02 07:58:14
阅读次数:
365
<?php class Vcode { private $width; //宽 private $height; //高 private $num; //数量 private $code; //验证码 private $img; //图像的资源 //构造方法, 三个参数 function __con ...
分类:
Web程序 时间:
2016-11-01 19:32:12
阅读次数:
290
/etc/init.d/xware #!/bin/sh ### BEGIN INIT INFO # Provides: svn_serve # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 ... ...
分类:
其他好文 时间:
2016-11-01 14:49:45
阅读次数:
172
Problem: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the tot ...
分类:
其他好文 时间:
2016-11-01 13:38:02
阅读次数:
193
学习支持向量机SVM时,拉格朗日对偶、Slater条件、KKT条件等一大堆概念席卷而来,让没系统学习过凸优化的笔者一头雾水,估计不少人都是这样吧。 为什么要引入一堆系数把约束条件与目标函数组合到一起?...
分类:
其他好文 时间:
2016-11-01 11:38:50
阅读次数:
498
大纲: 1.什么是Servlet 2.三种实现Servlet的方式 3.Servlet生命周期 4.Servlet的三个细节 5.ServletContext域 6.通过ServletConfig来获取web.xml的相关Servlet的配置 7.Servlet访问流程(注意有一步反射) 1.什么是 ...
分类:
其他好文 时间:
2016-11-01 00:57:00
阅读次数:
180
概述之前我写过一篇文章Android Service全面解析,简单实现了如何通过AIDL实现Service的跨进程通信(IPC),其实是通过Binder机制来实现的,本文我们就重点来看看Binder机...
分类:
移动开发 时间:
2016-10-31 16:44:44
阅读次数:
333