05 2015 档案

摘要:场景:在Web开发中,有时存在对内容进行简体和繁体互相转换的需求,这时我们可以参考以下做法。 1 2 3 4 5 简繁转换 6 7 8 9 注意:此翻译非100%正确。10 ... 阅读全文
posted @ 2015-05-30 17:56 KenmuHuang 阅读(700) 评论(1) 推荐(1)
摘要:这篇随笔记录的是本人2010年学习前端知识的Demo资料。通过一个个例子的代码实践,慢慢掌握了DIV+CSS和JavaScript、jQuery的基本用法。现在在这里分享给大家,对于前端知识了解甚少的小白来说,有学习参考的意义。由于Demo资料是本人当年刚工作不久时编写的,那时能力有限,所以代码难免... 阅读全文
posted @ 2015-05-30 17:33 KenmuHuang 阅读(2621) 评论(11) 推荐(16)
摘要:2013年9月27日的一篇随笔,其实也是自己编写的部署文档,由于客户是HK的,所以描述部分是用英文。涉及到的内容是关于SharePoint 2013如何部署自定义的母版页和布局页。First, Login to site collection by site collection administr... 阅读全文
posted @ 2015-05-30 00:33 KenmuHuang 阅读(1507) 评论(0) 推荐(0)
摘要:场景:2012年在做广州地铁协同办公项目时,客户觉得明文的数据库链接用户密码配置在web.config里面不安全;其实.NET里的web.config在IIS中有所限制,对安全性还是有保障的。但是客户既然有这样稍微“变态”的需求,那我们就考虑怎么去把它实现吧。存在的技术难点:(1)web.confi... 阅读全文
posted @ 2015-05-29 23:54 KenmuHuang 阅读(6423) 评论(0) 推荐(0)
摘要:在Web开发中,我们常常会涉及到需要获取Get方式URL中的参数键值的情况,这里简单介绍三种方法:第一种:常用的做法有使用JavaScript获取location.href后用正则表达式匹配获取此URL的所有键值对;也可以通过以“&”为分隔符进行分隔后存储在对象中,然后获取对象中的键值对,如下例子:... 阅读全文
posted @ 2015-05-29 23:21 KenmuHuang 阅读(2650) 评论(0) 推荐(0)
摘要:有时候,我们需要控制文本框,只允许用户输入可以为负数的浮点值,例如:-23.563;而不允许出现23.563qq这样的值。这里我们还是看代码吧,用正则表达式很容易就能实现以上需求:前台页面:1 后台页面:1 //注意负号、点号都需要使用双个斜杠转换,单引号单个斜杠转换2 //其实以下的代码直接在前台... 阅读全文
posted @ 2015-05-29 23:02 KenmuHuang 阅读(5848) 评论(0) 推荐(0)
摘要:建议不要用CODE-39码,改用CODE-128码;CODE-39码密度比较低,条码数字内容太多,导致条码太长,缩短长度就只能减小X尺寸,造成识读困难;CODE-128码密度高,相同的数字生成条码更短。你可以对比一下图中的两个条码,上面是CODE-39,下面是CODE-128,相同的内容:解决方案:... 阅读全文
posted @ 2015-05-29 18:28 KenmuHuang 阅读(2004) 评论(2) 推荐(2)
摘要:使用ClientScript.GetCallbackEventReference实现局部刷新是.NET支持的一种前后台代码调用的方式;其实实现局部刷新这样方式有很多种,最经典也常用的莫过于jQuery封装好的异步调用方法(ajax, get, getJSON, post),这里就不去多加比较,毕竟都... 阅读全文
posted @ 2015-05-29 17:50 KenmuHuang 阅读(1226) 评论(0) 推荐(0)
摘要:场景:当URL中存在“,*,%,&,:,/”特殊字符时,页面会抛出A potentially dangerous Request.Path value was detected from the client异常。原因:是ASP.NET默认的拦截机制,保证页面URL传输的一定安全性。解决方案有两种:... 阅读全文
posted @ 2015-05-29 17:36 KenmuHuang 阅读(8271) 评论(0) 推荐(0)
摘要:此篇随笔是2013年根据项目需求开发记录的,不一定符合大众口味,只需了解开发思路,毕竟解决方案多种多样。下面简单说说需求点吧:(1)通过下拉列表可以选择一个DataSet(数据集),一个DataSet存在可以互相关联的多个DataTable(数据表格),DataTable数据来源于数据库视图;SQL... 阅读全文
posted @ 2015-05-29 17:08 KenmuHuang 阅读(2621) 评论(0) 推荐(1)
摘要:CSVHelper.cs内容: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Web; 6 using System... 阅读全文
posted @ 2015-05-29 16:32 KenmuHuang 阅读(5264) 评论(0) 推荐(0)
摘要:方法定义: 1 public static void InitDropDownList(DropDownList ddl, bool isAddTopItem, DropDownList ddlSub, object ddlDataSource, string ddlTextField, strin... 阅读全文
posted @ 2015-05-29 16:27 KenmuHuang 阅读(601) 评论(0) 推荐(0)
摘要:场景:使用rdlc开发报表,例如订单产品报表,显示多个订单,一个订单有动态生成的固定的多个产品组成,同时统计每个订单里多个产品数量总数。数据库层面分析:此报表属于交叉报表,例如5个订单,3个产品,总共的数据库记录应该为15条,而不是5条。存在的技术难点:(1)动态列生成使用Matrix矩阵控件(2)... 阅读全文
posted @ 2015-05-29 16:11 KenmuHuang 阅读(3200) 评论(1) 推荐(2)
摘要:1 public class UserCopy 2 { 3 public class LoginEntity 4 { 5 public string UserName { get; set; } 6 public string UserPwd { g... 阅读全文
posted @ 2015-05-29 15:49 KenmuHuang 阅读(5659) 评论(2) 推荐(0)
摘要:如tb_flag 数据结构如下:flag int null不能使用:flag==null生成的SQL语句为 where flag=null建议使用:可空类型 用Nullable.Equals(字段,值)var query=from f in db.tb_flagwhere Nullable.Equa... 阅读全文
posted @ 2015-05-29 15:44 KenmuHuang 阅读(3707) 评论(0) 推荐(0)
摘要:本随笔讲述如何用JavaScript来读取SharePoint 2013 中blog相关的帖子列表。ASCX File Content:JS File Content(Learning_WP_Blog.js): 1 //读取帖子列表里的前10条帖子 2 //Get top 10 items fr... 阅读全文
posted @ 2015-05-29 15:17 KenmuHuang 阅读(327) 评论(0) 推荐(0)
摘要:这里总结了关于使用ECMAscript对象模型来操作Goup与User的常用情况,内容如下: 1、取得当前Sharepoint网站所有的Groups 2、获取当前登录用户的Title与所属Group 3、获取指定Group下的所有Users 4、获取所有的Groups的所有Users的特定信息 ... 阅读全文
posted @ 2015-05-29 15:04 KenmuHuang 阅读(605) 评论(0) 推荐(0)
摘要:问题1:在SharePoint 2013页面中使用Javascript 事件window/document.onload/ready时,你会发现处理onload/ready事件的代码根本不能执行。问题2:使用ECMAScript的方式客户端模型调用SP.ClientContext(),出现脚本错误;... 阅读全文
posted @ 2015-05-29 14:49 KenmuHuang 阅读(280) 评论(0) 推荐(0)
摘要:问题:Personal site's photo can't correct display in the videos pageThe url address of personal site's photo is exist surplus characters.The correct situ... 阅读全文
posted @ 2015-05-29 14:45 KenmuHuang 阅读(303) 评论(0) 推荐(0)
摘要:问题:为了去掉Photo Gallery的水平滚动效果,更改为根据内容进行自适应宽度多行显示效果Promoter link --> photo galleryNot horizontal scroll the photo解决方式:1、编辑状态下(Edit Page)添加内容编辑器部件(Content... 阅读全文
posted @ 2015-05-29 14:35 KenmuHuang 阅读(498) 评论(0) 推荐(0)
摘要:此随笔记录自2013年做过的一个SharePoint 2013的HK项目,效果图里面只是测试数据,仅供参考。开发用于SharePoint 2013网站的母版页,必须掌握的知识有:(1)熟悉SharePoint 2013母版页生成原理和操作(2)熟练前端知识(涉及的CSS+DIV和JavaScript... 阅读全文
posted @ 2015-05-29 14:16 KenmuHuang 阅读(344) 评论(0) 推荐(0)
摘要:最近在SharePoint 2013的网站上发现,没有看到有切换不同用户登录的入口,在SharePoint 2010中是存在这样的菜单项能够很方便的进行用户切换的,不知道为什么,SharePoint 2013默认竟然没有。如下图:这个功能我觉得还是有必要存在的,所以我们需要给它添加一个“以其他用户身... 阅读全文
posted @ 2015-05-29 13:48 KenmuHuang 阅读(315) 评论(0) 推荐(0)
摘要:在SharePoint 2013默认网站页面中,很多时候,我们需要隐藏左边快速启动菜单栏,这时我们可以通过下面的样式来实现隐藏它。和SharePoint 2010不太一样,方法改了,不过性质是一样的。 阅读全文
posted @ 2015-05-29 13:40 KenmuHuang 阅读(434) 评论(0) 推荐(0)
摘要:大家在使用SharePoint2013的时候是否发现,地址栏中显示的URL不再变得友好,多出这么一段“_layouts/15/start.aspx#”,怎么看怎么别扭。如果要取消这段路径的显示,需要deactivateMinimal Download Strategyfeature,方法:Site ... 阅读全文
posted @ 2015-05-29 13:35 KenmuHuang 阅读(444) 评论(0) 推荐(0)
摘要:1 $snapin = Get-PSSnapin | where-object { $_.Name -eq 'Microsoft.SharePoint.PowerShell' } 2 if ($snapin -eq $null){ 3 write-host "Loading SharePoint... 阅读全文
posted @ 2015-05-29 13:10 KenmuHuang 阅读(438) 评论(0) 推荐(0)
摘要:内容仅供参考,需结合实际需求来处理。=========SharePoint 环境下运行ps1文件,ps1内容如下======= 1 Set-ExecutionPolicy ByPass 2 Add-PSSnapin Microsoft.SharePoint.PowerShell 3 4 Add-... 阅读全文
posted @ 2015-05-29 13:02 KenmuHuang 阅读(403) 评论(0) 推荐(0)
摘要:备份网站集:1 Backup-SPSite -Identity http://win2012sp2013:1000/ -Path "C:\KenmuTemp\Test File\Temp\siteCollectionBackup.bak" 阅读全文
posted @ 2015-05-29 12:56 KenmuHuang 阅读(402) 评论(0) 推荐(0)
摘要:导出网站,例如:1 Export-SPWeb -Identity http://win2012sp2013:1000/Hopewell_Portal/ -Path "C:\KenmuTemp\Test File\Temp\siteExport.cmp" -IncludeUserSecurity -I... 阅读全文
posted @ 2015-05-29 12:53 KenmuHuang 阅读(794) 评论(0) 推荐(0)
摘要:在编辑SharePoint后台XML架构时常需要在ID属性上填写一个GUID (Globally Unique Identifiers 全局唯一标识的简称);我们可以打开SharePoint管理控制台,输入以下PowerShell指令:1 [System.Guid]::NewGuid().toSt... 阅读全文
posted @ 2015-05-29 12:46 KenmuHuang 阅读(1446) 评论(0) 推荐(0)
摘要:由于博客园随笔内容有限制,不得不拆分为几篇随笔来发布,o(╯□╰)o了续上一篇随笔:Upgrade site collection from SP2010 to SP2013(Part 3)前两篇随笔地址也一并附上:Upgrade site collection from SP2010 to SP2... 阅读全文
posted @ 2015-05-29 11:50 KenmuHuang 阅读(220) 评论(0) 推荐(0)
摘要:续上一篇随笔:Upgrade site collection from SP2010 to SP2013(Part 2)Configure a job to executeincrementalcrawl every day.Try to search information in our port... 阅读全文
posted @ 2015-05-29 11:36 KenmuHuang 阅读(188) 评论(0) 推荐(0)
摘要:续上一篇随笔:Upgrade site collection from SP2010 to SP2013(Part 1)Create a web application which can't include any site collection in order to let it as our... 阅读全文
posted @ 2015-05-29 11:26 KenmuHuang 阅读(386) 评论(0) 推荐(0)
摘要:关于如何升级SharePoint 2010 的网站集到SharePoint 2013;由于篇幅截图较长,这里分为4篇随笔来记录。内容来自于:个人的工作经验总结记录时间:2013年12月31日Description: The help document about upgrade site colle... 阅读全文
posted @ 2015-05-29 11:01 KenmuHuang 阅读(541) 评论(0) 推荐(0)
摘要:使用名称为“NT AUTHORITY\Authenticated Users” 阅读全文
posted @ 2015-05-29 01:01 KenmuHuang 阅读(190) 评论(0) 推荐(0)
摘要:在新的Farm(场)里,创建一个新的Web Application(网站应用程序),不需要创建Site Collection(网站集)Copy(复制)自定义开发的WSP包到新的Farm Server(场服务器)上,使用PowerShell进行Deploy(部署)Copy(复制)网站下的web.con... 阅读全文
posted @ 2015-05-29 00:58 KenmuHuang 阅读(1287) 评论(0) 推荐(0)
摘要:默认是250MB,最大一次上传文件不超过2GThe defaut size is 250MB and maximun upload size is 2047MB. It's can't greater than 2048MB(2G). 阅读全文
posted @ 2015-05-29 00:55 KenmuHuang 阅读(2401) 评论(0) 推荐(0)
摘要:通过IP访问SharePoint站点,出现“The Web application athttp://172.21.19.132:1000could not be found....”如下错误:解决方式,是配置交替访问映射(Configure alternate access mappings),如... 阅读全文
posted @ 2015-05-29 00:53 KenmuHuang 阅读(482) 评论(0) 推荐(0)
摘要:日历重合 (Calendars Overlay)的用途就是将 不多于10个日历或日历视图聚集在一个日历视图中显示,并且可以用不同颜色区分来自不同日历或日历视图的事件。1、首先创建一个List View,名称为“ColorCalendar”,Filter中设置根据“Category”值为空过滤数据;此... 阅读全文
posted @ 2015-05-29 00:47 KenmuHuang 阅读(480) 评论(0) 推荐(0)
摘要:在SharePoint 2007和2010中,自定义dll存放在“C:\Windows\assembly\”文件夹中,在Windows资源管理器中可以看到。但在Sharepoint 2013中,却无法在“C:\Windows\assembly\”中看到,百思不得其解。原来SharePoint 201... 阅读全文
posted @ 2015-05-29 00:40 KenmuHuang 阅读(355) 评论(0) 推荐(0)
摘要:一、首先设置IIS中的Web.config文件找到对应的IIS应用程序目录,如:C:\inetpub\wwwroot\wss\VirtualDirectories\3000在此文件夹下包含一个web.config文件,打开找到标签,改为;然后找到改为2.2%Program Files%\Common... 阅读全文
posted @ 2015-05-29 00:38 KenmuHuang 阅读(317) 评论(0) 推荐(0)
摘要:SharePoint 2013已经安装好了,接下来就是配置开发环境,安装VS2012,但是装好以后,发现没有SharePoint 2013开发的支持,如下图:VS2012对SharePoint 2013支持,需要装VS插件。先要安装Microsoft Web PlatForm Install 4.0... 阅读全文
posted @ 2015-05-29 00:36 KenmuHuang 阅读(235) 评论(0) 推荐(0)
摘要:I have created one simple workflow on custom list using SharePoint designer 2013.While designing workflow, I have unchecked the “Allow this workflow t... 阅读全文
posted @ 2015-05-29 00:24 KenmuHuang 阅读(401) 评论(0) 推荐(0)
摘要:问题:(1)提示“reload the page and then start the workflow”错误(2)提示“Unable to properly communicate with the workflow service”异常解决方式:确保以下Services正常启动,可以在运行“Se... 阅读全文
posted @ 2015-05-29 00:21 KenmuHuang 阅读(605) 评论(0) 推荐(0)
摘要:2012年的一篇随笔记录,可以学习到如何自定义HttpModule,而具体里面针对需求开发的代码,可能未必能让大伙了解到什么,可快速扫描而过。 1 using System; 2 using System.Web; 3 4 using System.Configuration; 5 u... 阅读全文
posted @ 2015-05-29 00:08 KenmuHuang 阅读(1625) 评论(0) 推荐(0)
摘要:具体请求的登录验证页面后台逻辑处理,这里我们忽略,不在我们的学习范围内;关键的是使用jQuery异步请求方法,如下例子: 1 2 3 4 5 6 7 8 9 10 11 12 14 16 17 ... 阅读全文
posted @ 2015-05-28 23:58 KenmuHuang 阅读(615) 评论(0) 推荐(0)
摘要:文件操作应用场景:如果你的.NET项目是运行在SharePoint服务器上的,你可以直接使用SharePoint服务器端对象模型,用SPFileCollection.Add方法http://msdn.microsoft.com/zh-cn/library/ms454491%28office.12%2... 阅读全文
posted @ 2015-05-28 23:20 KenmuHuang 阅读(5128) 评论(0) 推荐(0)
摘要:异常详细信息:Microsoft.SharePoint.SPException: 位置 http://portal/Pages/ShowArticle.aspx?id=19&mylist=866e1c61-f4a5-46ec-9773-9bb1caf1109c 处不存在任何项目。项目可能已被... 阅读全文
posted @ 2015-05-28 23:06 KenmuHuang 阅读(675) 评论(0) 推荐(0)
摘要:开发部署时报错:错误原因:没有启动该服务;解决方式:打开管理中心—应用程序管理—服务应用程序--管理服务器上的服务,启动该服务即可。 阅读全文
posted @ 2015-05-28 23:00 KenmuHuang 阅读(323) 评论(0) 推荐(0)
摘要:list.Folder表示subject,属于特殊列表,使用list.Folder遍历项,而不是使用list.Items;list.Items表示reply;list.Items[0]["ParentFolderId"]表示subject的ID 阅读全文
posted @ 2015-05-28 22:56 KenmuHuang 阅读(188) 评论(0) 推荐(0)
摘要:错误出现的前提:多个用户在一台机器上做开发,使用非系统管理员账号时会出现,因为一般创建网站集时指定管理员为系统管理员;使用 Visual Studio 2010 部署时报错:Error occurred in deployment step 'Recycle IIS Application Pool... 阅读全文
posted @ 2015-05-28 22:51 KenmuHuang 阅读(276) 评论(0) 推荐(0)
摘要:You basically get anything in the object model with one full url: 1 //here is the site for the url 2 using (SPSite site = new SPSite("http://basesmcde... 阅读全文
posted @ 2015-05-28 22:47 KenmuHuang 阅读(199) 评论(0) 推荐(0)
摘要:场景:本地服务器上,用“localhost”方式访问网站;在某网站集(Site Collection)下的子网站(Sub Site)中,点击网站权限菜单(Site permissions)等关于调用Layout下文件的情况,就出现“File not found”异常;配置网站web.config的C... 阅读全文
posted @ 2015-05-28 22:42 KenmuHuang 阅读(549) 评论(0) 推荐(0)
摘要:每次打开错误页面时,SharePoint出错显示的都是友好信息“发生意外错误”,而且友好到您基本上无法明白到底出什么错,怎么办?修改Web.config文件配置就可以了,就可以显示更详细的信息:1、 将的mode改为"Off"2、将中的CallStack和AllowPageLevelTrace的属性... 阅读全文
posted @ 2015-05-28 22:28 KenmuHuang 阅读(220) 评论(0) 推荐(0)
摘要:这里有一条解决在SharePoint 2010搜索爬网时遇到的“拒绝访问错误”的小技巧。首先要检查默认内容访问帐户是否具有相应的访问权限,或者添加一条相应的爬网规则。如果目标资源库是一个SharePoint库,验证一下该帐号是否具有对该SharePoint web应用程序具有至少“完全读取”的权限。... 阅读全文
posted @ 2015-05-28 22:18 KenmuHuang 阅读(662) 评论(0) 推荐(0)
摘要:场景:SQL Server中,需要删除所有表或所有存储过程时,手动的方式只能逐个进行删除,耗个人时间,所以想弄个语句来实现这样的需求。如果由于外键约束删除table失败,则先删除所有约束:--/第1步**********删除所有表的外键约束*************************/ 1 D... 阅读全文
posted @ 2015-05-28 18:20 KenmuHuang 阅读(8388) 评论(2) 推荐(1)
摘要:1 select count(*) from sysobjects a 2 join syscolumns b 3 on a.id=b.id4 where a.name='表名'5 go 阅读全文
posted @ 2015-05-28 18:09 KenmuHuang 阅读(1163) 评论(0) 推荐(0)
摘要:一、按指定符号分割字符串,返回分割后的元素个数,方法很简单,就是看字符串中存在多少个分隔符号,然后再加一,就是要求的结果(标量值函数) 1 create function Func_StrArrayLength 2 ( 3 @str varchar(1024), --要分割的字符串 ... 阅读全文
posted @ 2015-05-28 18:04 KenmuHuang 阅读(5921) 评论(0) 推荐(2)
摘要:新建“计划(Maintenance Plan)”时,记得执行计划需把SQL的“代理服务(SQL ServerAgent)”也开启出现对话框:“SQL Server 阻止了对组件 'Agent XPs' 的 过程 'dbo.sp_set_sqlagent_properties' 的访问,因为此组件已作... 阅读全文
posted @ 2015-05-28 17:50 KenmuHuang 阅读(5475) 评论(0) 推荐(1)
摘要:1 USE TestDB; 2 GO 3 ALTER DATABASE TestDB 4 SET RECOVERY SIMPLE; --设置简单恢复模式 5 GO 6 7 DBCC SHRINKFILE (TestDB_Log, 1); 8 GO 9 10 ALTER DATABAS... 阅读全文
posted @ 2015-05-28 17:43 KenmuHuang 阅读(241) 评论(0) 推荐(1)
摘要:1 use master 2 go 3 select * from sys.dm_os_buffer_descriptors 4 go 5 6 --查看数据库在数据缓存(data cache)中占用的空间大小 7 --由于每个数据页对应动态管理视图(dynamic management view... 阅读全文
posted @ 2015-05-28 17:36 KenmuHuang 阅读(2293) 评论(0) 推荐(1)
摘要:备份:--完整备份declare @db_name varchar(100)set @db_name = 'WSS_Content_Test';declare @db_location varchar(100)set @db_location = 'D:\spbr0002\0000000B.bak'... 阅读全文
posted @ 2015-05-28 17:31 KenmuHuang 阅读(356) 评论(0) 推荐(1)
摘要:动态为页面添加CSS样式文件引用: 1 if (document.createStyleSheet) { //IE 2 document.createStyleSheet("./Themes/Default/MessageTip.css"); 3 } 4 else { //Firefox, ... 阅读全文
posted @ 2015-05-28 17:17 KenmuHuang 阅读(796) 评论(0) 推荐(0)
摘要:禁止页面内按F5键进行刷新: 1 //禁止页面内按F5键进行刷新 2 function f_DisableF5Refresh(event) { 3 var e = event || window.event; 4 var keyCode = e.keyCode || e.which; 5 ... 阅读全文
posted @ 2015-05-28 17:15 KenmuHuang 阅读(928) 评论(0) 推荐(0)
摘要:Array扩展方法: 1 //author: Kenmu 2 //created time: 2015-03-16 3 //function: 删除数组内以某值开头的字符串对象 4 Array.prototype.removeBeginWithVal = function (val) { 5 ... 阅读全文
posted @ 2015-05-28 17:12 KenmuHuang 阅读(404) 评论(0) 推荐(0)
摘要:页面脚本出错场景:原因:今天新装了 Visual Studio 2013,使用 VS2013 打开一个现有的 WEB 网站, 在调试网站的时候出现在了脚本错误,一个文件名叫 "browserLink", 项目中没有使用这些文件啊, 难道中毒了?仔细看了一个 VS 里面的信息, 发现 browserL... 阅读全文
posted @ 2015-05-28 17:02 KenmuHuang 阅读(683) 评论(1) 推荐(0)
摘要:$("#content").append('' + data.msg + ''+.'');$('#content').attr({ scrollTop: $('#content').attr('scrollHeight') });//jQuery版本1.6+时,用prop()方法代替attr()方法... 阅读全文
posted @ 2015-05-28 16:58 KenmuHuang 阅读(2367) 评论(0) 推荐(0)
摘要:tblCostSplit.html内容:只想显示里面内容,去掉nobr标签只想显示里面内容,去掉nobr标签只想显示里面内容,去掉nobr标签(1)html方法,会导致原来Dom内容的绑定事件出现错误,不建议使用tblCostSplit.html(tblCostSplit.html().replac... 阅读全文
posted @ 2015-05-28 16:56 KenmuHuang 阅读(348) 评论(0) 推荐(0)
摘要:场景:页面有一个搜索文本框和搜索按钮。正常情况下,当我在搜索文本框输入关键字后按回车键就可以触发搜索按钮进行内容搜索,但由于页面上还有其它按钮,而且默认不是搜索按钮,怎样才能实现回车就触发我们的搜索按钮呢?html内容: 1 2 3 4 7 ... 阅读全文
posted @ 2015-05-28 16:48 KenmuHuang 阅读(1671) 评论(0) 推荐(0)
摘要:由于所分享的前端知识,属于跨度几年的个人笔记,只是记载关键代码;并没有针对所做的内容具体场景和需求进行描述,仅供参考。关键代码: 1 //html内容 2 /** 3 * @author Kenmu 4 * @time 2011-03-30 5 * @modified 2014-01-23 6 * ... 阅读全文
posted @ 2015-05-28 16:24 KenmuHuang 阅读(261) 评论(0) 推荐(0)
摘要:/** * @description 事件绑定,兼容各浏览器 * @param target 事件触发对象 * @param type 事件 * @param func 事件处理函数 */ function addEvent(target, type, func) { if (target.... 阅读全文
posted @ 2015-05-28 16:03 KenmuHuang 阅读(6842) 评论(0) 推荐(0)
摘要:当图片不存在时显示默认图片1 或者:1 键盘大小写键状态 1 阅读全文
posted @ 2015-05-28 15:56 KenmuHuang 阅读(300) 评论(0) 推荐(0)
摘要:从2010年3月份出来工作到2015年初,做过的大大小小的 .NET Web 项目如下:(1)售楼系统产品「Role: Team Member」(2)中弘合同管理系统「Role: Team Member」(3)Gammon Portal 金门建筑内部门户「Role: Team Leader」(4)H... 阅读全文
posted @ 2015-05-28 15:54 KenmuHuang 阅读(530) 评论(0) 推荐(1)
摘要:textarea 显示一串英文时不会发生换行。以下是两种解决方法:1、限制textarea的大小width 设置为 00px (不要设置为00%)cols 设置为 30+ (也有类似效果)2、设置cssword-break:break-all; word-wrap:break-word; 强制换行,... 阅读全文
posted @ 2015-05-28 15:48 KenmuHuang 阅读(1994) 评论(0) 推荐(0)
摘要:正确写法.custom-topNavigation_shadow { width: 1024px; height: 115px;background: url('Images/document-block-main.png') repeat-x 0 -380px;}IE8或以下不支持的写法,IE9... 阅读全文
posted @ 2015-05-28 15:39 KenmuHuang 阅读(417) 评论(0) 推荐(0)

如果您看完本篇博文,觉得对您有所收获,请点击右下角的 [推荐]
如果您想转载,请注明出处(原创内容,请尊重个人劳动成果)
如果您有任何意见或建议,欢迎留言
感谢您的阅读,敬请关注我的后续博客文章