12 2011 档案

获取Extjs中的TreePanel中所有的被checked的叶子节点的id
摘要: tree.on("checkchange",function(node){varcc="";root.cascade(function(node1){if(node1.leaf==true&&node1.attributes.checked=='true'){cc+=node1.id+",";}});if(cc!=""){cc=cc.substring(0,cc.length-1)}})阅读全文

posted @ 2011-12-28 20:21 毛毛亟亟 阅读(122) | 评论 (0) 编辑

Failed to execute request because the App-Domain could not be created. Error: 0×80131902的解决方法
摘要: 今天打开iis下的asp.net网站发现,“服务器应用程序不可用”,并且查看事件查看器发现了,Failed to execute request because the App-Domain could not be created. Error: 0×80131902的解决方法 的报错,google了一下,找到一个解决的方法: 首先运行 cmd,切换目录到 %SystemRoot%\Microsoft.Net\Framework\ (%SystemRoot% C:\Windows) net stop w3svc - 停止w3svc服务 cd v2.0.50727 切换到此目录 as阅读全文

posted @ 2011-12-21 14:47 毛毛亟亟 阅读(18) | 评论 (0) 编辑

ASP.NET项目中bin,app_code,app_data 等文件夹的作用
摘要: 1. Bin文件夹Bin文件夹包含应用程序所需的,用于控件、组件或者需要引用的任何其他代码的可部署程序集。该目录中存在的任何.dll文 件将自动地链接到应用程序。如果在该文件夹中留有不用的或过期的文件,则可能出现“二义性引用(ambiguous reference)”异常的风险。换句话说,如果两个不同的程序集定义相同的类(相同的命名空间和名称),则ASP.NET运行库不能决定应该使用哪 一 个程序集,从而抛出一个异常。在开发时,当我们重新命名一个项目或一个程序集的名称时,这是常见的错误。为了避免这种错误,一定不要在该文件夹中保留任 何 不必要的程序集,或者至少要从配置文件的<assemb阅读全文

posted @ 2011-12-20 17:35 毛毛亟亟 阅读(35) | 评论 (0) 编辑

常用的javascript日期格式化
摘要: var str = '2008-11-11 11:11:09';alert(str.replace(/\s\d+:\d+:\d+$/,''));Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(), 阅读全文

posted @ 2011-12-13 12:10 毛毛亟亟 阅读(86) | 评论 (0) 编辑

正则表达式中常用的公式
摘要: 1.回车加空格(在批量查找并且replace中很常用)\s+阅读全文

posted @ 2011-12-12 17:24 毛毛亟亟 阅读(12) | 评论 (0) 编辑

获取EXTJS中的FormPanel的所有控件值和属性
摘要: BookPanel.items.each(function(item,index,length){ alert(item.getName()); alert(item.initialConfig.name); alert(item.initialConfig.id); alert(item.initialConfig.emptyText); alert(item.getValue()); alert(item.getXType()); });阅读全文

posted @ 2011-12-10 16:20 毛毛亟亟 阅读(204) | 评论 (0) 编辑

让toolbar.button以及formpanel中的button像个普通按钮
摘要: 先把按钮默认的cls设置成鼠标放上去的样子x-btn-over。然后添加鼠标移开的事件。删除和添加这个样式 text:'查询', iconCls:'icon-find', cls:'x-btn-over', listeners:{ mouseout:function(){ this.removeClass('x-btn-over'); this.addClass('x-btn-over'); } }, handler:function(){}阅读全文

posted @ 2011-12-08 12:08 毛毛亟亟 阅读(20) | 评论 (0) 编辑

arcgis中面的保存与读取显示
摘要: 技术点: var graphicStr=dojo.toJson(geometry.toJson()); //使用dojo将json串解析成string的json,可以保存整个graphicStr;也可以使用geometry.toJson().rings的方式获取点位信息,可以将geometry.toJson().rings存入数据库;我在项目中用到显示面信息的代码 其中gismian为所有坐标信息;varsymbol=newesri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,newesri.symbol..阅读全文

posted @ 2011-12-07 00:25 毛毛亟亟 阅读(30) | 评论 (1) 编辑