按钮

android基本操作

谁说我不能喝 提交于 2020-02-12 00:12:14
1.页面跳转 activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="160dp" android:layout_marginLeft="160dp" android:layout_marginTop="268dp" android

2.11-表单

試著忘記壹切 提交于 2020-02-11 23:40:13
表单 今天下午重新学习了表单 表单提交的方式有两种:get和post 表单分为文本类、按钮类和选择类 -------文本类:包括文本框、密码框和文本域。 文本框-text 密码框-password 文本域-textarea -------按钮类:包括普通按钮(button)、提交按钮(submit)、重置按钮(reset)和图片按钮(image)。 ------选择类:包括单选按钮(radio)、复选按钮(checkbox)、下拉列表(select)和文件(file) 表单可以设置验证 必填项-input type=“text” required=“required”/> 默认提示-input type=“text” placeholder=“请输入姓名”/> 来源: CSDN 作者: XuanChen1234 链接: https://blog.csdn.net/XuanChen1234/article/details/104270283

一行变两行,不超出div

和自甴很熟 提交于 2020-02-11 18:40:41
{{minfo.accessURL}} 换行后并列对齐 .monitorSystem_wrap .data .controlsys .url span[data-v-38eb33db]:last-child{ background: pink; // max-width: 10px !important ; word-wrap: break-word; word-break: break-all; } <el-button type=“primary” size=“mini” @click=“doFilter” class=“main-button” >查询 <el-button size=“mini” @click=“fReset” class=“next-button” >重置 来源: CSDN 作者: D-Dan� 链接: https://blog.csdn.net/D_D_an/article/details/104196607

vue demo

白昼怎懂夜的黑 提交于 2020-02-11 18:30:26
1、v-on <!-- 方法处理器 --> <button v-on:click="doThis"></button> <!-- 动态事件 (2.6.0+) --> <button v-on:[event]="doThis"></button> <!-- 内联语句 --> <button v-on:click="doThat('hello', $event)"></button> <!-- 缩写 --> <button @click="doThis"></button> <!-- 动态事件缩写 (2.6.0+) --> <button @[event]="doThis"></button> <!-- 停止冒泡 --> <button @click.stop="doThis"></button> <!-- 阻止默认行为 --> <button @click.prevent="doThis"></button> <!-- 阻止默认行为,没有表达式 --> <form @submit.prevent></form> <!-- 串联修饰符 --> <button @click.stop.prevent="doThis"></button> <!-- 键修饰符,键别名 --> <input @keyup.enter="onEnter"> <!-- 键修饰符,键代码 --> <input

寒假学习11

眉间皱痕 提交于 2020-02-11 17:25:53
Android Studio:RadioButton MainActivity package com.example.myapplicationfirst; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.RadioButton; public class MainActivity extends AppCompatActivity { //声明空间 private Button mBtnTextView; private Button mBtnButton; private Button mBtnEditText; private Button mBtnRadioButton; //寻找事件 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

IOS-动态添加组件

余生长醉 提交于 2020-02-11 15:52:08
// // ViewController.m // dynamicButton // // Created by Narciso Huang on 2020/2/10. // Copyright © 2020 cn.edu.nustti.ios. All rights reserved. // #import "ViewController.h" @interface ViewController () @end // 整个界面对应的控制器 @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // 在这个方法里面加载自己的控件 // 1、动态创建自己的按钮的对象 UIButton *button = [[UIButton alloc] init]; // 2、设置按钮不同状态下显示不同的文字和文字的颜色 // 设置正常状态下显示的文字和颜色 [button setTitle:@"请点击我" forState:UIControlStateNormal]; [button setTitleColor:[UIColor redColor] forState:UIControlStateNormal]; // 设置高亮状态下显示的文字和颜色 [button setTitle:@"你好👋"

函数防抖与节流

大兔子大兔子 提交于 2020-02-11 14:12:48
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <button id="throttle">节流</button> <button id="debounce">防抖</button> <script> function throttle(callback, delay) { let start = 0 return function (...args) { const current = Date.now() if (current - start > delay) { start = current callback.apply(this, args) } } } function debounce(callback, delay) { return function (...args) { if (callback.timeoutId) { clearTimeout(callback.timeoutId) } callback.timeoutId = setTimeout(() =>

WPF学习之启动窗体设置

安稳与你 提交于 2020-02-11 13:43:18
原文: WPF学习之启动窗体设置 WPF与传统的windows页面程序类似,但也有一些区别: 启动页 : 方法一: 在App.xaml文件中修改StartupUri的值。 方法二:在App.xaml.cs 后台代码中声明Main()方法、 [STAThread] static void Main() { Window2 win = new Window2(); Application app = new Application(); app.Run(win); } 方法三: [STAThread] static void Main() { Window2 win = new Window2(); Application app = new Application(); app.MainWindow = win; win.Show(); app.Run(); } 方法四: [STAThread] static void Main() { Application app = new Application(); app.StartupUri = new Uri("Window2.xaml", UriKind.Relative); app.Run(); } 在窗体window1.xaml中: <Window x:Class="Demo_1.Window1" xmlns=" http:/

DOM的基本操作(三)

本秂侑毒 提交于 2020-02-11 06:48:55
< ! -- & lt ; ! & ndash ; 1. 点击每个图片弹出对话框 & ndash ; & gt ; -- > < img src = "../image/1.jpg" alt = "" / > < img src = "../image/2.jpg" alt = "" / > < img src = "../image/3.jpg" alt = "" / > < script > //根据标签的名字获取图片标签,分别注册点击事件 var images = document . getElementsByTagName ( "img" ) ; //循环遍历数组,获取每个图片标签,注册点击事件,添加事件处理函数 for ( var i = 0 ; i < images . length ; i ++ ) { images [ i ] . onclick = function ( ) { alert ( "斑马,斑马,你不要睡着啦,让我看看你受伤的尾巴" ) ; } } < / script > < ! -- 2. 点击按钮改变各个属性 -- > < input type = "button" value = "按钮" id = "btn" > < script > //在某个元素的事件中,自己的事件中的this就是当前的这个元素对象 var obj = document

PPT之动作按钮和超链接

守給你的承諾、 提交于 2020-02-11 01:39:09
F5表示ppt的预览,shift+F5表示从此页开始放映 插入——形状——动作按钮(最下) 如果ppt页数多,就选择视图——幻灯片母版——插入动作按钮(注意上下居中,横向对齐) 将它们全部选中——格式——大小——幻灯片母版——关闭 超链接 点击一张幻灯片——插入——超链接——本文档中的位置——选择连接的页数 注意 :插入超链接时选择一个插件,想要显示是按按插件即可 来源: CSDN 作者: 请叫我高贵冷艳中二病 链接: https://blog.csdn.net/weixin_45704714/article/details/104225565