语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text(); //获取Se...
分类:
Web程序 时间:
2014-08-29 12:54:27
阅读次数:
313
14.44编写一个简单的桌面计算器使其能处理二元运算。#include#include#include#includeusing namespace std;int add(int a,int b){ return a+b;}struct divide{ int operator()(i...
分类:
其他好文 时间:
2014-08-29 12:47:27
阅读次数:
234
扩展Array的原型对象,加入indexOf方法if(!Array.prototype.indexOf){ Array.prototype.indexOf = function(target){ for(var i=0,l=this.length;i<l;i++){ if(this[i] === t...
分类:
Web程序 时间:
2014-08-29 12:44:17
阅读次数:
250
function removeundefined(str){ var v=new Array(),b=""; var tmp=fil(str); for(var i=0;i<tmp.length;i++){ if(tmp[i]==undefined||tmp[i]==""){ tmp[i]=0; }...
分类:
其他好文 时间:
2014-08-29 12:29:27
阅读次数:
172
1、后台Action中:
request.setAttribute("message", "此用户名或密码错误,请从新输入!");
2、前台jsp页面中:
2.1、在标签中增加onload方法,比如:
2.2、在本jsp页面中加入js代码块,如下:
function checkForm() {
var flag = '';
if(flag != "null") {...
分类:
编程语言 时间:
2014-08-29 11:02:27
阅读次数:
220
function check(){
var xz=document.getElementById("xz");
alert(xz.checked);
}...
分类:
Web程序 时间:
2014-08-29 09:28:17
阅读次数:
207
在知乎上看到的有人发布的和javascript有关的试题,和大家分享下,虽然是N久前的事了,但这些题相当经典,不免让人觉得javascript真是门蛋疼的语言。(function(){
returntypeofarguments;
})();
A."object"
B."array"
C."arguments"
D."undefined"答案:A02.varf=functiong(){..
分类:
编程语言 时间:
2014-08-29 03:01:07
阅读次数:
182
// 174 ? 175 : high; callback(high); }, delay); } window.onload = function () { a = document.getEl...
分类:
其他好文 时间:
2014-08-29 01:23:36
阅读次数:
226
; Run = function () { ; return Array.prototype.splice.call( arguments, -1 )[0].apply( this, arguments ) }; Loop = function () { var coun...
分类:
编程语言 时间:
2014-08-29 01:18:16
阅读次数:
298
inout.c 代码分析 主要看下对于文件的处理 /*
**?Function?to?open?a?file?to?be?input?unit.
**?Return?0?on?success?or?1?on?error.
*/
int?lua_openfile?(char?*fn)
{
?lua_linenumber?...
分类:
其他好文 时间:
2014-08-29 00:12:38
阅读次数:
274