必须组件jquery.min.js和jquery.form.js 说明:示例中只允许上传gif/jpg格式的图片,图片大小不能超过500k。 添加附件 0% $(function () { var bar = $('.b...
$.each()和$(selector).each()很阶段似,但它是不一样的。前者可用于遍历数组或json对象后者被设计成遍历jQuery对象第一个是$.each()对,通常这么用$.each(arr, function(i, v){ // do something})当中arr也就是集合,也能够...
分类:
Web程序 时间:
2015-07-01 21:57:19
阅读次数:
135
用JS获取地址栏参数的方法(超级简单)方法一:采用正则表达式获取地址栏参数:(强烈推荐,既实用又方便!)function GetQueryString(name){var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");var r = window....
分类:
Web程序 时间:
2015-07-01 21:56:12
阅读次数:
169
function stopMP(e) { if (!e) { e = window.event; } e.cancelBubble = true; if (e.stopPropagation) { e.stopPropagation(); }...
分类:
其他好文 时间:
2015-07-01 20:21:57
阅读次数:
117
angular.module(‘ng‘).filter(‘cut‘,?function?()?{
????????return?function?(value,?wordwise,?max,?tail)?{
????????????if?(!value)?return?‘‘;
????????????m...
分类:
Web程序 时间:
2015-07-01 18:55:02
阅读次数:
4132
后台不能打开或空白:把php.ini中的output_buffering=off修改为on后台无法点击菜单:(其实优化下表就可以了)目录dede/templets/的index_body.htm文件中的第25行至第35行部分屏蔽/*$(function(){$.get("index_testenv.php",function(data){if(data!==‘‘){$("#__testEvn").html(dat..
分类:
系统相关 时间:
2015-07-01 18:48:36
阅读次数:
175
AngularJS中除了内置指令,还可以自定义指令。自定义指令和自定义过滤器一样,有两种方法:第一种,在module中配置:$compileProvider.directive(‘directiveName‘,function(){});代码模版为:$compileProvider.directive(‘‘,[‘‘,function(){
//Runsduringcompile
return{
//nam..
分类:
Web程序 时间:
2015-07-01 18:43:20
阅读次数:
205
vareditupdate=function(){
varappId=process_appId;
$("#editupdate").dialog(‘option‘,‘appId‘,appId);
vardlg=document.getElementById("editupdate");
varelements=dlg.getElementsByTagName("INPUT")
for(i=0;i<elements.length;i++){
varitem=elements.item(i);
if(it..
分类:
Web程序 时间:
2015-07-01 18:36:55
阅读次数:
144
//: Playground - noun: a place where people can play
import UIKit
//多返回值函数
func countss(string:
String) -> (vowels:
Int,consonants:
Int,others: Int) {
var vowels =
0, consonants...
分类:
其他好文 时间:
2015-07-01 18:30:19
阅读次数:
115
使用d3绘制某个地市的地图时,把scale成很大可是还是无法达到想要的效果。
//-------------------------------------------------------------
//获得地图的中心 获得center
function getCenters(features){
var longitudeMin = 100000;//最小...
分类:
Web程序 时间:
2015-07-01 18:14:01
阅读次数:
173