2019年3月7日

sharepoint等脚本加载完后再执行对应的方法

摘要: ExecuteOrDelayUntilScriptLoaded(myFunction,"sp.js"); //SP.SOD.executeFunc('sp.js', 'SP.ClientContext', myFunction); function myFunction() { //逻辑代码 } 阅读全文

posted @ 2019-03-07 15:33 赢在当下_Victor 阅读(191) 评论(0) 推荐(0) 编辑

Caml语句中筛选当前用户UserID

摘要: var query='\ \ \ \ '; 阅读全文

posted @ 2019-03-07 15:23 赢在当下_Victor 阅读(192) 评论(0) 推荐(0) 编辑

pnp的getItemsByCAMLQuery

摘要: var camlQuery={ ViewXml: "\ 1\ \ \ \ \ \ \ " }; ... 阅读全文

posted @ 2019-03-07 15:18 赢在当下_Victor 阅读(270) 评论(0) 推荐(0) 编辑

利用pnp获取用户的property

摘要: //Retrieve Properties of Current User $pnp.sp.profiles.myProperties.get().then(function(result) { props = result.UserProfileProperties.results; var propValue = ""; props.forEach(function(... 阅读全文

posted @ 2019-03-07 15:04 赢在当下_Victor 阅读(214) 评论(0) 推荐(0) 编辑

promise的用法

摘要: 首先要引用es6-promise.min.js文件。 更详细的讲解可以参考 ES6 Promise 用法讲解 阅读全文

posted @ 2019-03-07 14:47 赢在当下_Victor 阅读(220) 评论(0) 推荐(0) 编辑

for循环中匿名同步

摘要: for(var i=1;i<=rowCount;i++) { (function(i){ //业务逻辑 })(i); } 阅读全文

posted @ 2019-03-07 14:17 赢在当下_Victor 阅读(194) 评论(0) 推荐(0) 编辑

导航