接下来,我们补充一下Activity的横竖屏生命周期的变化。 先上代码吧: package com.sunofbeaches.activitylifecircledemo; import android.app.Activity; import android.os.Bundle; import a ...
分类:
其他好文 时间:
2020-07-26 19:25:44
阅读次数:
79
什么是启动模式呢? 我们的Activity是由系统创建的,我们编写xxxActivity直接或者间接继承自Activity,然后我们是没有自己创建的,只是配置了一下即可。 Activity由系统创建启动的时候,有几种模式,我们把这几种模式叫做Activity的启动模式。 Activity启动模式有那 ...
分类:
其他好文 时间:
2020-07-26 19:17:59
阅读次数:
69
1.这部分是显示跳转到另一个Activity,这个被跳转的Activ叫做SecondActivity 写法一: Intent intent = new Intent(this,SecondActivity.class); intent.putExtra("account",accountText); ...
分类:
其他好文 时间:
2020-07-26 15:31:18
阅读次数:
105
通过 javascript 伪协议, HTML5 dialog 元素实现的分屏书签程序 ...
分类:
其他好文 时间:
2020-07-23 23:02:36
阅读次数:
84
unit Unit1;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl ...
中间件的作用: 过滤进入应用程序的http请求。 比如,有一个活动,在活动开始前进入活动页则跳转到宣传页 使用步骤: 1 创建中间件 \app\Http\Middleware\Activity.php php artisan make:middleware Activity <?php namesp ...
分类:
其他好文 时间:
2020-07-16 18:34:15
阅读次数:
79
编辑如下 ... @click="handleEdit(scope.$index, scope.row)">编辑</el-button> ... 使用 Object.assign 来传值,如果直接用 this.editForm=row来传值,则编辑的时候会影响当行显示 //编辑 handleEdit ...
分类:
其他好文 时间:
2020-07-15 15:42:19
阅读次数:
100
ASP.NET几种清除页面缓存的方法 在asp.net中使用模式dialog时,你会发现每次打开的页面都是相同的内容,页面内容并没有刷新,这是缓存的原因造成的, 解决方法如下: 第一种是ASP.NET清除页面缓存 Response.Buffer = true; Response.ExpiresAbs ...
分类:
Web程序 时间:
2020-07-15 12:48:06
阅读次数:
64
public void clickKefu() { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.baidu.com")); getActivity().startActivity(intent); } ...
分类:
移动开发 时间:
2020-07-14 18:09:16
阅读次数:
94
测试同学提了一个问题, 问题的具体现象为 一个dialog出现后, 其中的input内容有聚焦, 但是确不能通过 tab 移动到下一个 input 输入框 我感觉也很是奇怪, 但是只要用鼠标点击 dialog 浮层的任何一个位置就可以进行正常的操作了(通过tab进行input的移动) 奇怪的是, 我 ...
分类:
其他好文 时间:
2020-07-11 19:20:51
阅读次数:
61