```
ECMA5: function Drag(id){ this.ele = document.getElementById(id); var that = this; this.ele.onmousedown = function(evt){ that.fnDown(evt); } this.... ...
分类:
其他好文 时间:
2018-07-06 22:22:58
阅读次数:
185
1 PVector p1,p2,n; 2 float d = 0; 3 4 void setup() 5 { 6 size(600,600); 7 8 p1 = new PVector(150,30);//线段第一个端点 9 p2 = new PVector(-25,-100);//线段第二个端点 ... ...
分类:
其他好文 时间:
2018-07-05 21:44:08
阅读次数:
292
区别: mouseover与mouseenter 不论鼠标指针穿过被选元素或其子元素,都会触发 mouseover 事件。 只有在鼠标指针穿过被选元素时,才会触发 mouseenter 事件。 mouseout与mouseleave 不论鼠标指针离开被选元素还是任何子元素,都会触发 mouseout ...
分类:
其他好文 时间:
2018-07-05 19:51:19
阅读次数:
147
其实看到属性这个单词,还有点发憷呢,C#里面有个关键词是Attributes, 搞了半天貌似没有弄清楚 e.Row.Attributes.Add()函数的介绍,包括参数,什么是Attributes 然后就是add("属性","结果"); 这个讲的全 C#中 Attributes的用法 ...
分类:
其他好文 时间:
2018-06-30 19:53:13
阅读次数:
1016
function throat(callback,num){ var timer = null; callback = callback || function(){}; return function(){ if(!timer){ var that = this; var arg = argume... ...
分类:
Web程序 时间:
2018-06-30 14:45:48
阅读次数:
192
package com{ import flash.display.MovieClip; import flash.net.NetConnection; import flash.net.NetStream; import flash.events.AsyncErrorEvent; import f... ...
分类:
其他好文 时间:
2018-06-30 12:55:55
阅读次数:
161
1、登录系统 2、36选7 不重复 注;indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。 如果没有找到字符串,则返回-1. 3、多选框 效果 4、轮播图 ...
分类:
其他好文 时间:
2018-06-24 15:12:27
阅读次数:
168
Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given ...
分类:
其他好文 时间:
2018-06-23 15:45:53
阅读次数:
195
1 2 3 4 5 6 7 8 Document 9 43 44 45 46 47 48 49 --> 50 51 52 53 --> 54 5... ...
分类:
编程语言 时间:
2018-06-23 14:33:09
阅读次数:
202
1 attr() 方法设置或返回被选元素的属性值。$("button").click(function(){ $("img").attr("width","180");});2 append() 方法在被选元素的结尾(仍然在内部)插入指定内容。$("button").click(function() ...
分类:
Web程序 时间:
2018-06-21 23:38:36
阅读次数:
303