var DOM = (document.getElementById) ? 1 : 0;var NS4 = (document.layers) ? 1 : 0;var IE4 = 0;if (document.all){ IE4 = 1; DOM = 0;}var win = window; var n = 0;function findIt() { if (document.getElementById("searchstr").value != "") findInPage(document.getElementById("searchst Read More
posted @ 2011-04-14 11:31 Lester Programming Views(1262) Comments(0) Diggs(0) Edit
private var _square:Sprite;private var _angle:uint;public function flashtest(){_square = new Sprite();_square.graphics.lineStyle(0.5);_square.graphics.drawCircle(0,0,20);addChild(_square);_angle = 0;addEventListener(Event.ENTER_FRAME,move);}private function move(event:Event):void{var converter:Conve Read More
posted @ 2011-03-10 17:13 Lester Programming Views(226) Comments(0) Diggs(0) Edit
勾股定理 Pythagorean theorema² + b² = c²var c:Number = Math.sqrt(Math.pow(a,2) + Math.pow(b,2)); Read More
posted @ 2011-03-10 16:11 Lester Programming Views(190) Comments(0) Diggs(0) Edit
var _die:Sprite;var _value:uint;public function flashtest(){_die = new Sprite();addChild(_die);_die.addEventListener(MouseEvent.CLICK,rollDie);rollDie(null);}private function rollDie(event:MouseEvent):void{_value = NumberUtilities.random(1,6);_die.graphics.clear();_die.graphics.lineStyle();_die.grap Read More
posted @ 2011-03-10 15:36 Lester Programming Views(295) Comments(0) Diggs(1) Edit
private var _field:TextField;public function flashtest(){_field = new TextField();_field.autoSize = "left";addChild(_field);var circle:Sprite = new Sprite();circle.graphics.beginFill(0,100);circle.graphics.drawCircle(100,100,100);circle.graphics.endFill();circle.addEventListener(MouseEvent Read More
posted @ 2011-03-10 10:36 Lester Programming Views(172) Comments(0) Diggs(0) Edit
DateTime dt = DateTime.Now; Label1.Text = dt.ToString(); //2005-11-5 13:21:25 Label2.Text = dt.ToFileTime().ToString(); //127756416859912816 Label3.Text = dt.ToFileTimeUtc().ToString(); //127756704859912816 Label4.Text = dt.ToLocalTime().ToString(); //2005-11-5 21:21:25 Label5.Text = dt.ToLongDateSt Read More
posted @ 2010-04-03 20:36 Lester Programming Views(179) Comments(0) Diggs(0) Edit
加 <styletype="text/css"> <!-- a:link{ text-decoration:none; } a:visited{ text-decoration:none; } a:hover{ text-decoration:none; } a:active{ text-decoration:none; } --> </style> 这样一个样式就可以了text-decoration:none;这个代表没有下滑线,以上代码是始终没有下滑线 Friend:网友(2008-02-20 11:29:17)直接a{text-de Read More
posted @ 2010-04-03 16:59 Lester Programming Views(6615) Comments(0) Diggs(0) Edit
From:Refresh-air在面试的时候,经常会遇到这样的问题,其实我们会对其中的几种方法比较熟悉,因为项目中经常使用。但是要全面的回答ASP.NET中页面传值的方式,估计往往很难全面。一. 使用QueryString变量 QueryString是一种非常简单也是使用比较多的一种传值方式,但是它将传递的值显示在浏览器的地址栏中,如果是传递一个或多个安全性要求不高或是结构简单的数值时,可以使用这个方法。 Response.Redirect( "target.aspx?param1=hello&param2=hi ") 接收页面: string str = Requ Read More
posted @ 2010-03-19 19:22 Lester Programming Views(130) Comments(0) Diggs(0) Edit
具体要注意的:1.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num上设置默认值0,确保表中num列没有null值,然后这样查询:select id from t where num=02.应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描。优化器将无法通过索引来确定将要命中的行数,因此需要搜索该表的所有行。3.应尽量避免在 where 子句中使用 or 来连接条件,否则将导致引擎放弃使用索引而进行全表扫描 Read More
posted @ 2010-03-16 21:02 Lester Programming Views(281) Comments(0) Diggs(0) Edit
<tr> <td>登录名:<input id="Text1" type="text" name="loginName" /><asp:Label ID="Label1" runat="server" Text="用户名已经存在"></asp:Label> </td> </tr> <tr> <td>密&nbsp;&nbsp; 码:<input id= Read More
posted @ 2010-03-15 20:27 Lester Programming Views(270) Comments(0) Diggs(0) Edit