lightning app:
要求:Share Lightning Out Apps with Non-Authenticated Userslightning app:报错XMLHttpRequest cannot load https://XXXXX.lightning.force.com/c/XXXXXXXX.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT. Redirect from 'https://XXXXX.lightning.force.com/c/XXXXXX.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT' to 'https://XXXXXX.my.salesforce.com/visualforce/session?url=https%3A%2F%2FXXXXX.lightning.force.com%2Fc%2FXXXXXXXX.app%3Faura.format%3DJSON%26aura.fo...
ASP.NET MVC分页 demo
//servcieusing System;using System.Collections.Generic;using System.Linq;using System.Web;using StaticMvc.Models; using Webdiyer.WebControls.Mvc;namespace StaticMvc{ public class ArticleService { public PagedList<Article> GetPagedList(int page, int count) { PagedList<Article> result = GetList().ToPagedList(page, count); result.TotalItemCount = GetList().Count(); result.CurrentPageIndex = pag...
asp.net mvc静态化
public class StaticFileFilterAttribute : FilterAttribute, IResultFilter { public void OnResultExecuted(ResultExecutedContext filterContext) { filterContext.HttpContext.Response.Filter = new StaticFileWriteResponseFilterWrapper(filterContext.HttpContext.Response.Filter, filterContext); } public void OnResultExecuting(ResultExecutingContext filterContext) { } class Sta...
电脑突然蓝屏,PE都进不去
电脑突然蓝屏,PE都进不去PE进不去,肯定是硬件的问题,一 一排除拔显卡,不行拔USB,不行拔内存条,不行,内存条只上一根不行,换一根内存条,行了!原来是有根内存条(第一根,共4根)坏了,也许年份久了。。。
绿色google浏览器设置为默认浏览器
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\GoogleChrome]@="GoogleChromeDocument"[HKEY_CLASSES_ROOT\GoogleChrome\Shell][HKEY_CLASSES_ROOT\GoogleChrome\Shell\open][HKEY_CLASSES_ROOT\GoogleChrome\Shell\open\command]@="\"d:\\Program Files\\GoogleChrome\\GoogleChrome.exe\" \"%1\""[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice]"Progid"="GoogleChrome"
踩坑:white-space: nowrap;
规定段落中的文本不进行换行:p { white-space:nowrap; }属性定义及使用说明white-space属性指定元素内的空白怎样处理。默认值:normal继承:yes版本:CSS1JavaScript 语法:object.style.whiteSpace="pre" 浏览器支持表格中的数字表示支持该属性的第一个浏览器版本号。属性white-space1.05.53.53.09.5属性值值描述normal默认。空白会被浏览器忽略。pre空白会被浏览器保留。其行为方式类似 HTML 中的 <pre> 标签。nowrap文本...
找不到Lightning Component Tabs
参考地址:https://help.salesforce.com/articleView?err=1&id=dev_tabdef.htm&type=5Lightning Component TabsLightning component tabs make Lightning components available in the Salesforce mobile app (via the navigation list) or in Lightning Experience. Lightning components aren’t supported in Salesforce Classic.NoteTo expose Lightning components via Lightning component tabs, you must enable and deploy My Domain. 大意就是,1.lightning不支持Sal...
CRC循环冗余检验原理
为什么引入CRC现实的通信链路都不会是理想的。这就是说,比特在传输的过程中可能会产生差错:1可能会变成0,0可能会变成1,这就叫做比特差错。在一段是时间内,传输错误的比特占所传输比特总数的比率成为误码率BER(Bit Error Rate)。误码率与信噪比有很大的关系,在实际通信中不可能使误码率下降到零。因此,为了保证数据传输的可靠性,在计算机网络传输数据时,必须采用各种差错检测措施。目前在数据链路层广泛使用了循环冗余检测CRC的检测技术CRC的原理CRC运算实际上就是在数据长为k的后面添加供差错检测用...
salesforce REST services demo
@RestResource(urlMapping='/Cases/*') global with sharing class CaseManager { @HttpGet global static Case getCaseById() { RestRequest req = RestContext.request; String caseId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1); Case result = [SELECT CaseNumber, Subject, Status, Origin, Priority FROM Case WHERE Id = :caseId]; return result; } /* H...