上一页 1 ··· 306 307 308 309 310 311 312 313 314 ··· 341 下一页
摘要: /* 牛顿迭代法求解方程 在2.0附近的一个根 */ #include#includevoid main(){ double x1,x,f,f1; scanf("%lf",&x1); do { x=x1; f=x*x*x*x-3*pow(x,3)+1.5*x*x-4; f1=4*pow(x,3)-9*x*x+3*x; x1=x-f/f1; }while(fabs... 阅读全文
posted @ 2009-03-22 17:11 emanlee 阅读(7318) 评论(0) 推荐(0)
摘要: HTML 4.0 Event Attributes New to HTML 4.0 is the ability to let HTML events trigger actions in the browser, like starting a JavaScript when a user clicks on an HTML element. Below is a list of attrib... 阅读全文
posted @ 2009-03-19 22:20 emanlee 阅读(449) 评论(0) 推荐(0)
摘要: Quick reference: .Any character except newline. \.A period (and so on for \*, \(, \\, etc.) ^The start of the string. $The end of the string. \d,\w,\sA digit, word character [A-Za-z0-9_], or whit... 阅读全文
posted @ 2009-03-19 18:36 emanlee 阅读(1200) 评论(0) 推荐(0)
摘要: 正则表达式是一个描述字符模式的对象。 Javascrīpt的RegExp对象和String对象定义了使用正则表达式来执行强大的模式匹配和文本检索与替换函数的方法. 在Javascrīpt中,正则表达式是由一个RegExp对象表示的.当然,可以使用一个RegExp()构造函数来创建RegExp对象,也 阅读全文
posted @ 2009-03-19 18:35 emanlee 阅读(364) 评论(0) 推荐(0)
摘要: Format the Date The Date field displays date and time information by default. You can format it to display only the date. To format a date field Click the Design tab. Right-click the cell with ... 阅读全文
posted @ 2009-03-18 23:30 emanlee 阅读(607) 评论(0) 推荐(0)
摘要: Enable the Safari Debug menu option on Windows To enable the Safari Debug menu option, you need to find your Preferences.plist file located in %APPDATA%\Apple Computer\Safari (%APPDATA is typically C... 阅读全文
posted @ 2009-03-18 23:29 emanlee 阅读(2836) 评论(0) 推荐(0)
摘要: ================= I have tried like this.. function fnPrint() { document.getElementById('print').style.visibility='hidden'; window.all.print(); document.getElementById('print').style.... 阅读全文
posted @ 2009-03-18 23:28 emanlee 阅读(364) 评论(0) 推荐(0)
摘要: 项目测试中,客户向我们反应,某个页面请求速度特别慢,简直无法忍受。这里简单插一些情况的描述:对于一个使用人数、并发操作并不多的项目,客户不会过多的在性能上提出要求,对他们来说,多几百ms的等待时间,不会带来更多情绪。 但是,当你请求某个页面后,去泡杯茶回来,发现页面还死死的在那里,进度条不紧不慢的一点一点增长,就无法忍受了。利用Firefox的debug[ debug ?]测了一下,... 阅读全文
posted @ 2009-03-15 23:30 emanlee 阅读(472) 评论(2) 推荐(0)
摘要: 此文只是些肤浅应用和建议(Visual Studio 2003, ASP.NET 1.1) 关于数据处理相关的优化 一、 SqlDataReader和Dataset的选择 Sqldatareader优点:读取数据非常快。如果对返回的数据不需做大量处理的情况下,建议使用SqlDataReader,其性能要比dataset好很多。缺点:直到数据读完才可close掉与数据库的连接(SqlDataRea... 阅读全文
posted @ 2009-03-15 23:28 emanlee 阅读(274) 评论(0) 推荐(0)
摘要: 数据库访问性能优化 数据库的连接和关闭 访问数据库资源需要创建连接、打开连接和关闭连接几个操作。这些过程需要多次与数据库交换信息以通过身份验证,比较耗费服务器资源。 ASP.NET中提供了连接池(Connection Pool)改善打开和关闭数据库对性能的影响。系统将用户的数据库连接放在连接池中,需要时取出,关闭时收回连接,等待下一次的连接请求。连接池的大小是有限的,... 阅读全文
posted @ 2009-03-15 23:24 emanlee 阅读(306) 评论(0) 推荐(0)
上一页 1 ··· 306 307 308 309 310 311 312 313 314 ··· 341 下一页