private void button1_Click(object sender, EventArgs
e) { //OpenFileDialog dlg = new OpenFileDialog(); OpenFileDialog fileDialog1 =
new OpenFileDialog....
分类:
其他好文 时间:
2014-05-08 13:27:26
阅读次数:
229
邮箱验证:$(function () {
$("#txt_Email").blur(function () { var email =
/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-...
分类:
Web程序 时间:
2014-05-08 12:45:49
阅读次数:
395
Nodejs模仿commonJS模块系统,内置的require函数很容易include存在于各个分离的文件中的模块。Require函数的基本功能是读取一个javaScript文件并且执行它,返回exports对象。一个模块的例子:
console.log("evaluating example.js");
var invisible = function () {
console.log(...
分类:
Web程序 时间:
2014-05-07 23:25:39
阅读次数:
324
问题描述
OTP的supervisor中为了防止淘气的Child从link的另一端断掉link,supervisor会在shutdown child之前unlink(Child)并切换为monitor状态,这样supervisor对Child的监控将无法被Chlid终止。这段代码是由monitor_child/1实现的,其具体实现代码如下:
872 %% Help function to...
分类:
其他好文 时间:
2014-05-07 23:14:21
阅读次数:
390
lua中打印所以类型功能实现
本人测试 number、string、bool、nil、table嵌套table、userdata没问题 共享一下有什么问题请拍砖 代码如下 cclog = function( ... )
local tv = "\n"
local xn = 0
local function tvlinet(xn)
-- body...
分类:
其他好文 时间:
2014-05-07 21:51:38
阅读次数:
347
通过Ajax到数据库去验证是否存在这个用户:PHP代码: 1 js代码: 1 var
xmlHttp; 2 function getXmlHttp(){ 3 if(window.ActiveXObject){ 4 xmlHttp = new
ActiveXObject("MI...
分类:
Web程序 时间:
2014-05-07 21:28:21
阅读次数:
401
2.3.2计算阶乘实例1 的阶乘结果是: {{factorial.result}}
function Factorial ($scope) { $scope.factorial = {}; $scope.factori...
分类:
其他好文 时间:
2014-05-07 20:50:10
阅读次数:
296
ptr_fun是将一个普通的函数适配成一个functor,添加上argument
type和result type等类型,
其实现如下(例子里面是binary_function,unary_function同理):C++代码templateinlinepointer_to_binary_functi...
分类:
其他好文 时间:
2014-05-07 20:33:56
阅读次数:
393
使用findByPk()根据数据表主键查询的是对象,不需要使用foreach()循环出来但是使用findall()和find()查询的是对象类型的数组需要使用foreach()循环出来=======================================
public function...
分类:
其他好文 时间:
2014-05-07 20:32:35
阅读次数:
565
private void button1_Click(object sender, EventArgs
e) { //OpenFileDialog dlg = new OpenFileDialog(); OpenFileDialog dlg = new
OpenFileDialog(); if...
分类:
其他好文 时间:
2014-05-07 20:28:32
阅读次数:
295