上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页
摘要: <html><head><script type="text/javascript">function WaitFor() { var x = screen.width / 2 - 120; var y = screen.height / 2 - 100; var waitfor = document.getElementById("waitfor"); var innerText = '<div id="sub_waitfor" style=" Filter:Alpha(O 阅读全文
posted @ 2012-12-01 17:30 Yu 阅读(281) 评论(2) 推荐(0) 编辑
摘要: function statusJSON(tp) { //从TABKE获取数据 varbatchArray = null; var table = $("#tbRepeater"); table.find("tr").each(function (index) { if (lst == null) {batchArray = '{Id:"' + table.find("tr").eq(index).find("td #batchId").text() + '"}'; 阅读全文
posted @ 2012-12-01 17:18 Yu 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 通过 xpath 查找 xml 内容步骤: XPathDocument document = new XPathDocument(xmlFullpath); //读取xml内容XPathNavigator navigator =document.CreateNavigator(); //创建xml导航器XPathExpression expression = navigator.Compile(xpathString); // 将输入的 xpathString, 编译成表达式XPathNodeIterator nodeIterator = navigator.Select(expression 阅读全文
posted @ 2012-11-10 17:05 Yu 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1. 类定义: Ext.define(className, members, onClassCreated);Ext.define('person',{ /* 只读属性, 不会自动生成 getName() or setName() 方法 */ name:'apple', /* 自动生成 getAge() or setAge() 方法 ...*/ confing:{ age:18, wife:{name:'yu',age:18}}, /*可选*/applyAge:function(age){ if(age==null){ alert('ca 阅读全文
posted @ 2012-11-08 15:31 Yu 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1. 本地服务器, 数据库之间的查询, 可这样操作:-- 执行以下系统存储语句, 取得 name 值, 如 '192.168.1.1\SQLEXPRESS'EXEC sp_helpserver-- 查询本地服务器的目标数据库select * from [192.168.1.1\SQLEXPRESS].目标数据库名称.dbo.表名2. 异地服务器, 数据库之间的查询, 可这样操作--映射异地服务器至本地服务器, 执行以下两句EXEC sp_addlinkedserver@server = 'demo', -- 目标服务器别名@srvproduct = 'M 阅读全文
posted @ 2012-09-21 13:09 Yu 阅读(4231) 评论(0) 推荐(2) 编辑
摘要: 功能分解, 以最小函数分析问题, 最后组合起来解决问题.通过"名词"和"动作"发现对象, 对象对自己负责.责任转移.视角(抽象为概念;抽象成员及方法为规格;派生类为实现) .继承可以实现代码重用,在使用时,必须遵守is-a;组合也是重要方法之一,比继承优先考虑使用.分层设计主要为了实现“高内聚,低耦... 阅读全文
posted @ 2012-08-24 17:19 Yu 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Controller, View, ModelMVC 约定布局Route将URL 反射至 Controller/ActionRazor对@后面的变量加上括号是解决二义性的方法由 @aaa.bbb 中的 “点” 引起的二义性:.bbb 会被解析为@aaa的扩展属性或方法正确表达式:@(aaa).bbb... 阅读全文
posted @ 2012-08-24 09:00 Yu 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 系统环境变量设置:1. 在 Path 中添加 jdk 的 bin 安装目录,如 c:\Java\jdk1.7.0\bin;2 新建 JAVA_HOME, 设置变量值为 c:\Java\jdk1.7.0;3. 新建 CLASSPATH, 设置变量值为 .;%JAVA_HOME%\lib;4. 新建 JRE_HOME, 设置变量值为 c:\Java\jdk1.7.0\jre;tomcat配置设置:1. 在 conf 目录下,修改 tomcat-users.xml, 设置 Manager App 的管理权限。2. 在 conf 目录下,修改 server.xml,可以重新设置端口(默认为8080)和 阅读全文
posted @ 2012-08-05 23:17 Yu 阅读(312) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> $(document).ready(function() { $("input[name*='$txtReturnFile']").each(function(i, input) { $(input).bind("blur", function() { alert("bind successfully."); //TODO:something }); //bind }); //each }); //ready</scr 阅读全文
posted @ 2012-06-08 11:47 Yu 阅读(303) 评论(0) 推荐(0) 编辑
摘要: @using (Html.BeginForm("ForList", "CSOT", FormMethod.Post)){ CSOT List Type Please select the target item in the dropdown box: }===========================================================public ActionResult ForListTypeValue(){ //以JSON字符串作参数,比较特殊,在 callbackfunction中,需要对data进行$.par 阅读全文
posted @ 2012-05-25 10:04 Yu 阅读(17980) 评论(0) 推荐(2) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页