码迷,mamicode.com
首页 >  
搜索关键字:java    ( 298062个结果
C#/JavaScript/SqlServer 对日期时间的操作整理汇总
前言:针对C#/JavaScript/SqlServer常用的对日期时间的操作函数抽时间做了一个整理,网络上有许多,但是许多都不全,这些都是时间日期常用的一些操作!一、C# 常用日期时间操作//获取日期+时间DateTime.Now.ToString(); // 2008-9-4 20:02:10....
分类:数据库   时间:2014-05-09 04:24:24    阅读次数:438
android 通过广播监听网络连接状况
首先添加以下权限new一个广播NetStateChangeBroadcastpackage aviationboss.broadcast;import android.content.BroadcastReceiver;import android.content.Context;import an...
分类:移动开发   时间:2014-05-09 04:23:52    阅读次数:472
josn化表单数据
/** * josn化表单数据 * @name baidu.form.json * @function * @grammar baidu.form.json(form[, replacer]) * @param {HTMLFormElement} form 需要提交的表单元素 * @p...
分类:其他好文   时间:2014-05-09 04:21:52    阅读次数:287
CONTAINING_RECORD 宏
CONTAINING_RECORD 这样的一个宏,我看了它的定义,如下:#define CONTAINING_RECORD(address, type, field) ((type *)( (PCHAR)(address) - (ULONG_PTR)(&((type*)0)->field)))cla...
分类:其他好文   时间:2014-05-09 04:21:01    阅读次数:330
Edit Distance @Leetcode -- Python
http://oj.leetcode.com/problems/edit-distance/class Solution: # @return an integer def minDistance(self, word1, word2): len1 = len(word1)...
分类:编程语言   时间:2014-05-09 04:19:03    阅读次数:407
lua 根据函数名字符串来执行函数
function myfunction(msg) print("this is msg fun " .. msg);endlocal fun =_G["myfunction"];if fun then fun("is ok");end
分类:其他好文   时间:2014-05-09 04:18:05    阅读次数:1155
hdu 2897 巴什博弈变形
题目来源:http://acm.hdu.edu.cn/showproblem.php?pid=2897分析:n % (p + q) == 0 先手赢。 策略为: A 拿 q , B 拿任意 k, A拿 p+q - k, 最后剩 p, B拿。 n % (p + q) + left left <= p....
分类:其他好文   时间:2014-05-09 04:17:33    阅读次数:270
js setAttribute removeAttribute
1 2
分类:Web程序   时间:2014-05-09 04:16:31    阅读次数:352
java:抽象类和抽象函数
面向对象:先抽象后具体抽象类也叫基类抽象函数:只有函数的定义,没有函数体的函数,语法:类必须定义为抽象类,才能调用抽象函数,抽象类里面可以没有抽象函数abstract class Printer { abstract void fun();}抽象类不能生成对象,而抽象类通常被继承,继承的使用方...
分类:编程语言   时间:2014-05-09 04:15:09    阅读次数:264
MVVM Light Toolkit
DispatcherHelper因为 ViewModel 是一个 POCO,它不能访问 Dispatcher 属性,因此我需要通过另一种方式来访问主线程,以将操作加入队列中。这是 MVVM Light DispatcherHelper 组件的作用。CheckBeginInvokeOnUI:顾名思义,...
分类:其他好文   时间:2014-05-09 04:13:44    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!