function checkmemory%Copyright (c) 2014,Lv Qi%All
rights reserved.%%Redistribution and use in source and binary forms, with or
without modification, a...
分类:
其他好文 时间:
2014-05-10 20:07:52
阅读次数:
413
前段时间认真的看了一下《lua程序设计(第二版)》这本书,每一章写一个lua脚本,诸多注释,相信给初学者有一定帮助。 -- 第一章代码print("hello
Hello");-- 全局函数function face(n) if n == 0 then return 1 else return n ...
分类:
其他好文 时间:
2014-05-06 00:57:20
阅读次数:
339
STL的组成标准模板库STL关注的重点是泛型数据结构和算法,其关键组成部分是容器(containers)、算法(algorithms)、迭代器(iterators)、函数对象(Function
Object)、适配(Adaptor)。本文地址:http://www.cnblogs.com/archi...
分类:
其他好文 时间:
2014-05-05 23:00:10
阅读次数:
360
/*** 给元素增加遮罩层* @param maskLayer 遮罩层* @param maskObj
被遮罩元素*/function doMask(maskLayer,maskObj){
maskLayer.css("filter","alpha(opacity=60)"); maskLayer....
分类:
其他好文 时间:
2014-05-02 21:44:40
阅读次数:
434
JQuery工具方法.
(1)$.isNumeric(obj)
此方法判断传入的对象是否是一个数字或者可以转换为数字.
isNumeric: function(
obj ) {
// parseFloat NaNs numeric-cast false positives (null|true|false|"")
// ...bu...
分类:
Web程序 时间:
2014-05-02 19:17:27
阅读次数:
352
1. 自定义验证--成功提示
1) 添加选项
errorClass: "unchecked",
validClass: "checked",
errorElement: "span",
errorPlacement: function (error, element) {
if (element.parent().find("span[for=""" + element.attr("id...
分类:
Web程序 时间:
2014-05-02 18:38:21
阅读次数:
467
在Desktop.js中扩展一个函数initShortCut : function() {
var btnHeight = 64; var btnWidth = 64; var btnPadding = 30; var col = { index
...
分类:
Web程序 时间:
2014-05-02 13:28:43
阅读次数:
490
接着上次LU分解的讲解,这次给出使用不同的计算LU分解的方法,这种方法称为基于GaxPy的计算方法。这里需要了解lapapck中的一些函数。lapack中有一个函数名为gaxpy,所对应的矩阵计算公式是:x
= Gx + y; 对应的Matlab代码如下:function[L, U] =zgaxpy...
分类:
其他好文 时间:
2014-05-02 13:09:10
阅读次数:
414
出现下列错误:
mlogc.c:32:23: error: curl/curl.h: No such file or directory
mlogc.c:1091: error: expected ‘)’ before ‘*’ token
mlogc.c: In function ‘logc_init’:
出错原因:缺少libcurl-dev or libcurl-devel
...
分类:
其他好文 时间:
2014-05-02 10:50:35
阅读次数:
371
在Controller中: public ActionResult LoadFoo() {
return PartialView("Foo", aModel); }Javascript: function loadFoo() { $.ajax({
url: "LoadFoo", success: f...
分类:
Web程序 时间:
2014-05-02 08:18:52
阅读次数:
353