摘要:
首先看一下效果图: 项目结构图: Android 3.0以下版本的做法:importjava.util.Locale;importandroid.app.Activity;importandroid.app.AlertDialog;importandroid.content.Context;importandroid.content.DialogInterface;importandroid.content.Intent;importandroid.content.SharedPreferences;importandroid.content.SharedPreferences.Edit... 阅读全文
摘要:
这里我定义两个html页面,分别是1.html与2.html(以下简称1和2),1是需要传递数据的,2是接收数据的。1中"?"前面的需要跳转的url地址,后面的就是需要携带的数据。 1.html location.href = "2.html?id=1"; 2.html window.location.search ——设置或返回从问号 (?) 开始的 URL(查询部分)。 阅读全文