小程序动画实现旋转
.question .desc .image-rotate { position: absolute; z-index: 2; margin-left: 20rpx; margin-top: 20rpx; height: 280rpx; width: 280rpx; border-radius: 140rpx; animation: headRotate 6s linear infinite} /* 头像旋转效果 */@keyframes headRotate{ 0% {transform: rotate(0deg);} 50% {transform: rotate(180deg);} 100% {transform: rotate(360deg);}}
屏蔽 Chrome 的提示: “请停用以开发者模式运行的扩展程序”
source url:https://hencolle.com/2016/10/16/baidu_exporter/Chrome最近从Chrome应用商店删除了百度导出器,原因是一些未知的python事务。由于安全原因,Chrome将禁用具有未知源的本地扩展导入。如果加载了未打包的扩展,每次启动chrome时都会弹出恼人的窗口。因此,在本文中,我将提供一个更好的解决方案来使用Windows组策略加载百度导出器的最新版本。这个解决方案的灵感来自unown@github,谢谢。下载扩展名从这里复制或下载百度出口商的最新版本。打包扩展如果您有已编译的版本,则不需要执行此步骤。...
java版toModel
private static <T, S> T toModel(S source, Class clazz) { long startTime = System.currentTimeMillis(); try { Object obj = clazz.newInstance(); BeanUtils.copyProperties(source, obj); long endTime = System.currentTimeMillis(); System.out.println("程序运行时间:" +Float.toString((endTime - startTime))+"ms"); return (T) obj; } catch (IllegalAccessException e1) { } catch (Insta...
Filter Picklist Values Based on Record Type in Lightning
Filter Picklist Values Based on Record Type in Lightning October 3, 2018 Rajat KoradiyaFilter Picklist Values Based on Record TypeRetrieving a picklist value based on record type is possible in VF page using standard controllerIn lightning, Salesforce UI API supports a functionality to filter a picklist value based on record type based on this ideaYou can download the code from Here Use Case: I have picklist values based on Record Type defined as bel...
How to Call Salesforce API from Lightning Component
You may have heard about that we can not make the Salesforce API Call directly from the lightning component. If you do make the callout from the lightning component then you will get the below errorINVALID_SESSION_ID:This session is not valid for use with the API.For Example when you will execute the below code from the Developer Console then you will get the Valid Response1234567891011HTTP h = new HTTP();HTTPRequest req = new HTTPRequest();HttpRes...
salesforce lightning icon
<lightning:card title="{!v.headerTitle}" iconName="standard:related_list" class="title"><aura:set attribute="actions"><lightning:button class="slds-float_right slds-m-bottom_xx-small slds-m-right_small"variant="brand"label="New Form Link"title="New Form Link"onclick="{!c.CreateNewFormLink}" /><ui:inputSelect label="Filter By: " value="{!v.filterLob}" change="{!c.filterDataTable}"><option value="--None--">--None--</option><opt...
html select optgroup
<select id="manager" name="manager" onchange="document.getElementById('hierLabelDiv').style.display = this.options[this.selectedIndex].value=='Other' ? 'block' : 'none'; document.getElementById('ownMgrElm').disabled = this.selectedIndex == 0 ? 'true' : ''; if (this.selectedIndex == 0) document.getElementById('ownMgrElm').checked = ''"> <option value="">--None--</option> <optgroup label="Standard User Fields"> <option value="Mana...
js数组排序
Array.prototype.sortBy = function (attr, rev) { return this.sort(sortByKey(attr, rev));} var sortByKey = function (attr, rev) { //第二个参数没有传递 默认升序排列 if (rev == undefined) { rev = 1; } else { rev = (rev) ? 1 : -1; } return function (a, b) { a = a[attr].toLowerCase(); b = b[attr].toLowerCase(); if (a < b) { return rev * -1; } if (a > b) { r...
raid0、raid1、raid5、raid10这四种raid的特点和区别
raid(Redundant Array of Independent Disk 独立冗余磁盘阵列)技术是加州大学伯克利分校1987年提出,最初是为了组合小的廉价磁盘来代替大的昂贵磁盘,同时希望磁盘失效时不会使对数据的访问受损 失而开发出一定水平的数据保护技术。raid就是一种由多块廉价磁盘构成的冗余阵列,在操作系统下是作为一个独立的大型存储设备出现。raid可以充分发 挥出多块硬盘的优势,可以提升硬盘速度,增大容量,提供容错功能够确保数据安全性,易于管理的优点,在任何一块硬盘出现问题的情况下都可以继续工作,不会 受到损坏硬...
百度地图api:根据经纬度获取地理位置信息
调用百度api,根据经度和纬度获取地理位置信息,返回Json。C#代码:123456789101112131415161718192021222324252627282930313233using Newtonsoft.Json;using Newtonsoft.Json.Linq;using System;using System.Net.Http; public class LocationService { //百度api private static string url = @"http://api.map.baidu.com/geocoder/v2/?location={0}&output=json&ak=WEc8RlPXzSifaq9RHxE1WW7lRKgbid6Y"; /// <su...