[转]纯CSS 实现radio checkbox样式美化
.demo--label{margin:20px 20px 0 0;display:inline-block} .demo--radio{display:none} .demo--radioInput{background-color:#fff;border:1px solid rgba(0,0,0,0.15);border-radius:100%;display:inline-block;height:16px;margin-right:10px;margin-top:-1px;vertical-align:middle;width:16px;line-height:1} .demo--radio:checked + .demo--radioInput:after{background-color:#57ad68;border-radius:100%;content:"";display:inline-block;height:12px;margin:2px;width:12px} .demo--checkbox.demo--radio...
常见文件文件头
1、从Ultra-edit-32中提取出来的 附件:文件格式分析器 JPEG (jpg),文件头:FFD8FF PNG (png),文件头:89504E47 GIF (gif),文件头:47494638 TIFF (tif),文件头:49492A00 Windows Bitmap (bmp),文件头:424D CAD (dwg),文件头:41433130 Adobe Photoshop (psd),文件头:38425053 Rich Text Format (rtf),文件头:7B5C727466 XML (xml),文件头:3C3F786D6C HTML (html),文件头:68746D6C3E Email [thorough only] (eml),文件头:44656C69766572792D646174653A Outlook Express (dbx),文件头:CFAD12FE...
js验证图片真实格式(针对手动修改后缀名)
js验证图片真实格式(针对手动修改后缀名) <input type="file" id="file" onchange="handleFiles(this.files)"/> <script> function handleFiles(files) { if (files.length) { var file = files[0]; console.log(file.name); console.log(getFileExt(file)); } } function getFileExt(file) { var index = file.name.lastIndexOf('.'); var fileExt = file.name.substring(index+1); return fi...
MySQL Connector/Net for .net 4.0 驱动包
MySQL Connector/Net for .net 4.0 驱动包 http://mysql-connector-net-6.8.7.msi 附使用方法: using PW.Common; using PW.Model; using System; using System.Collections; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.Common; using System.Linq; using System.Text; namespace PW.Db { /// <summary> /// 数据访问基础类 /// </summary> public class Sql { protected static string connect...
salesforce开发利器:metaforce下载
谷歌app下载地址:https://chrome.google.com/webstore/detail/metaforce/hhnkaakhlhngcdckdiogpkjihnmgodep 本地下载:Metaforce 3.1.2.5_0 (本人从谷歌下载后,上传到了自己的博客供大家下载) 先看下效果图:
salesforce rest api test class
上一篇文章(salesforce rest api demo)我们写到salesforce如何写rest api,这篇我们将写如何写test class @isTest(SeeAllData=true) public class Api_user_profileTest { static testMethod void Api_user_profileTest() { system.debug('start...'); Test.startTest(); String ReturnCode = ''; RestContext.request = new RestRequest(); RestContext.response = new RestResponse(); RestContext.request.requestURI = '/services/apexrest/user/p...
salesforce rest api demo
// //api getPersonBasicInformation //by bruce he @RestResource(urlMapping='/user/profile/*') global with sharing class Api_user_profile{ @HttpGet global static void getPersonBasicInformation() { RestResponse res = RestContext.response; res.addHeader('Content-Type', 'application/json'); //return result obj PersonBasicInformation model = new PersonBasicInformation(); try{ ...
C#/.NET请求salesforce restful api示例
先在salesforce里写一个restful api: @RestResource(urlMapping='/user/*') global with sharing class Api_user_profile{ @HttpGet global static String getPersonBasicInformation() { List<Account> accList = DataBase.query('SELECT id,name FROM Account limit ' + Integer.valueOf(Math.floor(Math.random() * 10 + 1))); return JSON.serialize(accList); } } 再在c#/.net里调用salesforce restful api: using System; using System.Collec...