Skip to content

Instantly share code, notes, and snippets.

[
{
likeCount: 6,
mid: "2651844951",
voiceCount: 0,
accountDes: "关注这个时代最好的产品。",
rewardCount: 0,
oriUrl: "http://www.ifanr.com/697018",
source_username: "",
copyrightStat: "1",
@toobigdata
toobigdata / AllLookAndFeel.java
Created December 2, 2015 14:50
Java Beginner
import javax.swing.*;
public class AllLookAndFeel {
public static void main(String args[]) {
System.out.println("All LookAndFeel");
for( UIManager.LookAndFeelInfo info :UIManager.getInstalledLookAndFeels() ){
System.out.println(info.getName() + "--->" + info);
}
}
}
@toobigdata
toobigdata / 关注指定微信号
Last active January 29, 2016 06:06
微信前端
function weixinAddContact(name){
WeixinJSBridge.invoke("addContact", {webtype: "1",username: name}, function(e) {
WeixinJSBridge.log(e.err_msg);
//e.err_msg:add_contact:added 已经添加
//e.err_msg:add_contact:cancel 取消添加
//e.err_msg:add_contact:ok 添加成功
if(e.err_msg == 'add_contact:added' || e.err_msg == 'add_contact:ok'){
//关注成功,或者已经关注过
}
})