摘要:
1. var jsonStr = '{"a": 1, "b": "string", "c": [1, "11"]}'; console.log(typeof(jsonStr)); // string var json = $.parseJSON(jsonStr); console.log(typeof(json)); // object console.log(json.c); // [1, "... 阅读全文
摘要:
public class Car { private String name ; private int x ; private int y ; private HashSet listeners = new HashSet(); public Car(String name, int x, int y) { super(); this.name = name; ... 阅读全文
摘要:
[main]myAuthorRealm=cn.shiro.mytest.realm.MyAuthorRealmsecurityManager.realms=$myAuthorRealm 阅读全文
摘要:
class MyAsyncTask extends AsyncTask{ @Override protected Void doInBackground(Void... params) { for(int i=0;i<100;i++){ publishProgress(i); ... 阅读全文
摘要:
package com.example.app.sw.kg; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; i... 阅读全文
摘要:
/** * 流程实例的挂起(任务暂停 * 挂起的是流程 不是任务 需要流程实例的id piid * @author Administrator * */ public class Test05 { public static void main(String[] args) { ProcessEngine processEngine = ... 阅读全文
摘要:
package cn.test.circle; import java.awt.Color; import java.awt.Graphics; import java.util.ArrayList; import java.util.List; import javax.swing.JFrame; public class MyFrame extends JFrame{ ... 阅读全文
摘要:
package cn.test.circle; import java.awt.Graphics; public class MyRectangle { private int x ; private int y ; private int w ; private int h ; public MyRectangle(int x, int y, in... 阅读全文
摘要:
package cn.test.circle; import java.awt.Color; import java.awt.Graphics; public class MyCircle { private int x ; private int y ; private int w ; private int h ; public MyCircle(... 阅读全文
摘要:
[users] zhangsan=123456 lisi=123456 public class Test01 { public static void main(String[] args) throws Exception{ Factory factory = new IniSecurityManagerFactory("classpath:shiro01.ini"... 阅读全文