摘要: 1 在theme 中include 参照:https://serviceportal.io/using custom fonts service portal/ 阅读全文
posted @ 2019-05-08 17:24 hongsedigua 阅读(200) 评论(0) 推荐(0) 编辑
摘要: function onLoad() { var requestBy = getParameterValue("id");//id 为querystring的key } function getParameterValue(name) { name = name.replace(/[\[]/, "\\ 阅读全文
posted @ 2019-05-07 14:48 hongsedigua 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1、在sys_properties 表中添加一条数据 glide.entry.page.script 2、在script include 中修改SPEntryPage 改一下portal页面 参考页面: https://docs.servicenow.com/bundle/madrid servic 阅读全文
posted @ 2019-05-07 14:38 hongsedigua 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 1、获取work notes 或者comments 任一的数据 var comments = current.comments_and_work_notes.getJournalEntry(1); //1表示默认取一条数据。 1 表示取所有的数据 var na = comments.substrin 阅读全文
posted @ 2019-05-07 14:33 hongsedigua 阅读(299) 评论(0) 推荐(0) 编辑
摘要: function trim(s) { return s.replace(/(^\s )|(\s $)/g, ""); } 阅读全文
posted @ 2019-04-19 13:50 hongsedigua 阅读(109) 评论(0) 推荐(0) 编辑
摘要: function checkRate(input) { var re = /^[0 9]+.?[0 9] $/; //判断字符串是否为数字 //判断正整数 /^[1 9]+[0 9] ] $/ if (re.test(input)) { return true; } else { return fa 阅读全文
posted @ 2019-04-19 13:48 hongsedigua 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: function IsHKID(str) { var strValidChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" // basic check length if (str.length 阅读全文
posted @ 2019-04-19 13:46 hongsedigua 阅读(1648) 评论(0) 推荐(0) 编辑
摘要: 如图中所示: current.name = value; current.description = value; current.insert(); 代码中 value 变量接收到的数据,是在页面中添加记录时,录入的数据。 该数据会自动创建到reference 的table中 阅读全文
posted @ 2019-04-19 13:42 hongsedigua 阅读(175) 评论(0) 推荐(0) 编辑
摘要: select EntityId, from MetadataSchema.Entity where Name='dji_incidentaddress' SELECT TOP 100 [AttributeId] ,[AttributeTypeId] FROM [MetadataSchema].[At 阅读全文
posted @ 2018-05-10 23:32 hongsedigua 阅读(332) 评论(0) 推荐(0) 编辑
摘要: public static string compress(string aString) { if (string.IsNullOrEmpty(aString)) return ""; StringBuild... 阅读全文
posted @ 2014-06-16 10:31 hongsedigua 阅读(226) 评论(0) 推荐(0) 编辑