function detailUri($params){ $returnParams = array(); if (isset($params)) { $arParams = explode("&", $params); foreach ($arPara...
分类:
编程语言 时间:
2015-06-11 14:32:44
阅读次数:
175
最近发现好多客户,信息不完全!还是把qq号码,手机号,msn设为必选项比较好!下面以把qq设为必选项为例找到模板template/default/member/edit.htm找到function Dcheck() {if($('truename').value == '') {Tab(0);Dms...
分类:
移动开发 时间:
2015-06-11 14:28:12
阅读次数:
438
node.js中,各种模块有一种标准的写法:this._process.exec(command, options, function (err, stdout, stderr) { callback(err, stdout, stderr); })这里说的标准,...
分类:
Web程序 时间:
2015-06-11 14:16:37
阅读次数:
133
定义: String.prototype.replaceAll?=?function(s1,s2)?{
?????return?this.replace(new?RegExp(s1,"gm"),s2);
} 实例: 将所有的"\"转化为"_" docpath?=?docpath.replaceAll("\\\\","_")?;...
分类:
编程语言 时间:
2015-06-11 13:11:07
阅读次数:
109
Q:如何将一个数组的内容复制到另外一个数组?A:jscript.array.copyArray = function(isSrcArray,inDestArray){var i;for(i = 0; i ,所以它可以被显示在其他所有东西的上面。不幸的是,那个写代码的临时工不知道如何将居中。所以它通常...
分类:
编程语言 时间:
2015-06-11 12:47:44
阅读次数:
180
一、常见的字符串处理函数// 返回字符的长度,一个中文算2个String.prototype.ChineseLength = function() { return this.replace(/[^\x00-\xff]/g, "**").length;}// 去掉字符串两端的空白字符String.p...
分类:
编程语言 时间:
2015-06-11 12:47:02
阅读次数:
196
前台: 验证码: 看不清?换一张 前台js: function changeCode() { document.getElementById('ValidateButton').src = document.getElementById('ValidateButton').src + '?'...
分类:
其他好文 时间:
2015-06-11 12:31:37
阅读次数:
121
一、定义类格式:class classname [extends parent class] {var property = value; //属性function functionname ( args ){ //方法 //代码 }}二、创建对象创建对象使用 ne...
分类:
Web程序 时间:
2015-06-11 12:28:40
阅读次数:
147
步骤一:
在需要增加效果的标签中增加onclick事件:
步骤二:
添加JS代码:
function setcurrent(obj){
var a = document.getElementById('父级标签id').getElementsByTagName("li");
for(var i=0;i<a.length;i++){
a[i].classNam...
分类:
Web程序 时间:
2015-06-11 11:05:44
阅读次数:
119
/tamplate/default/news_category.html.php 34行 这个是view $_SBLOCK[newlist_multipage] /function/block.func.php 195行从 ...
分类:
其他好文 时间:
2015-06-11 10:53:36
阅读次数:
121