//第一种方式
message message = new obtain();
message.what = 1;
message.age1 = 1;
message.age2 = 2;
message.obj = "yuzhi";
message.sendMessage(message);
//第二种方式
Message message = new obtain(handler);
message.what = 1;
message.age1 = 1;
message.age2 = 2;
message.obj = "yuzhi";
message.sendToTarget();
//第三种方式
Message message = new obtain(handler,33);
message.age1 = 1;
message.age2 = 2;
message.obj = "yuzhi";
message.sendToTarget();
//第四种方式
Message message = new obtain(handler,33,1,2,"yuzhi");
message.sendToTarget();
时间: 2024-10-20 14:09:29