2014年6月4日
摘要: 1 function a() 2 { 3 var strnum =0; 4 function b(){ 5 alert(strnum+1); 6 } 7 return b; 8 } 9 var result=a();10 result(); // 1View ... 阅读全文
posted @ 2014-06-04 15:26 瓶装的生活 阅读(216) 评论(0) 推荐(0) 编辑
  2013年10月16日
摘要: 1.替换标签$("img[src='/_layouts/images/lstbulet.gif']").attr("src", "/huadong/SiteAssets/Images/icon.png");2.保留包含特定后代的元素,去掉那些不含有指定后代的元素。$('li').has('ul').css('background-color', 'red');3.筛选出与指定表达式匹配的元素集合。$("p").filter(" 阅读全文
posted @ 2013-10-16 16:02 瓶装的生活 阅读(178) 评论(0) 推荐(0) 编辑
  2013年9月9日
摘要: 1.给网站赋权限Set-SPUser –Identity “用户名” –AddPermissionLevel “参与讨论” –web “http://url”2.给列表赋权限$web = Get-SPWeb http://url$account = $web.EnsureUser("用户名")$role = $web.RoleDefinitions["参与讨论"]$list = $web.Lists["thxtest"]$list.BreakRoleInheritance($true)$assignment = New-Object 阅读全文
posted @ 2013-09-09 10:04 瓶装的生活 阅读(418) 评论(0) 推荐(0) 编辑
  2012年9月27日
摘要: 包含内容数据备份:Backup-SPSite -Identity http://80 -Path d:\80.bak -Force还原:Restore-SPSite -Identity http://new81 -path d:\80.bak–Force 阅读全文
posted @ 2012-09-27 17:06 瓶装的生活 阅读(134) 评论(0) 推荐(0) 编辑
  2012年9月7日
摘要: 有三种方式:1.#Ribbon\.DocLibListForm\.Edit\.Commit\.CheckIn-Large {display:none;}2.<script type="text/javascript">var elem = document.getElementById("Ribbon.DocLibListForm.Edit.Commit.CheckIn-Large");elem.style.display ="none";</script>3.?xml version="1.0&qu 阅读全文
posted @ 2012-09-07 11:00 瓶装的生活 阅读(926) 评论(0) 推荐(0) 编辑
  2012年8月27日
摘要: 在模板页中<SharePoint:DelegateControl runat="server" ControlId="TreeViewAndDataSource">DelegateControl是代理,指向C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\MetadataNavTree.ascx,必须修改MetadataNavTree.ascx。js自下而上加载,View Code <scri 阅读全文
posted @ 2012-08-27 11:15 瓶装的生活 阅读(471) 评论(0) 推荐(0) 编辑
  2012年8月17日
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-08-17 17:00 瓶装的生活 阅读(11) 评论(0) 推荐(0) 编辑
  2012年2月28日
摘要: 以Employes 为主表,Orders 表可有可无,只要Employes 表有数据就可以查到var q=from e in db.Employes join o in db.Orders on e equals o.Emoloyee into ords from on in ords.DefautIfEmpty() select new { e.FirstName, e.LastName }; 阅读全文
posted @ 2012-02-28 11:05 瓶装的生活 阅读(679) 评论(0) 推荐(0) 编辑
  2012年2月9日
摘要: SET STSADM="c:\program files\common files\microsoft shared\web server extensions\14\bin\stsadm.exe""%systemdrive%\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN\stsadm.exe" -o addSolution -filename D:\HSE.SharePoint.HseDocumentConvert\DeploymentFiles\HSE 阅读全文
posted @ 2012-02-09 15:02 瓶装的生活 阅读(233) 评论(0) 推荐(0) 编辑