- 【HarmonyOS NEXT应用开发】案例91:基于OpenGL渲染视频画面帧
青少年编程作品集
音视频算法华为云harmonyos华为华为od
场景描述在直播场景中,会有礼物、魔法等表情临时出现在画面,需要获取视频画面帧进行纹理更新后再渲染通过OpenGL渲染视频画面帧。⦁在ArkTS侧调用createAVPlayer()创建AVPlayer实例,初始化进入idle状态。设置业务需要的监听事件,设置资源:设置属性url,AVPlayer进入initialized状态。⦁设置窗口:获取并设置属性SurfaceID,该surfaceId是na
- HarmonyOS鸿蒙实战( Beta6.0)渲染视频画面帧实践-OpenGL
太空人_喜之郎
HarmonyOSOpenHarmony鸿蒙harmonyos华为linux鸿蒙前端开发语言移动开发
场景描述在直播场景中,会有礼物、魔法等表情临时出现在画面,需要获取视频画面帧进行纹理更新后再渲染通过OpenGL渲染视频画面帧。⦁在ArkTS侧调用createAVPlayer()创建AVPlayer实例,初始化进入idle状态。设置业务需要的监听事件,设置资源:设置属性url,AVPlayer进入initialized状态。⦁设置窗口:获取并设置属性SurfaceID,该surfaceId是na
- 鸿蒙开发5.0【基于OpenGL渲染视频画面帧】
爱桥代码的程序媛
鸿蒙harmonyosopenharmony鸿蒙鸿蒙系统程序员OpenGL渲染
场景描述在直播场景中,会有礼物、魔法等表情临时出现在画面,需要获取视频画面帧进行纹理更新后再渲染通过OpenGL渲染视频画面帧。⦁在ArkTS侧调用createAVPlayer()创建AVPlayer实例,初始化进入idle状态。设置业务需要的监听事件,设置资源:设置属性url,AVPlayer进入initialized状态。⦁设置窗口:获取并设置属性SurfaceID,该surfaceId是na
- 鸿蒙(API 12 Beta3版)【使用AVPlayer开发音频播放功能(ArkTS)】音视播放与录制
移动开发技术栈
鸿蒙开发音视频harmonyosffmpegopenharmony图片鸿蒙鸿蒙系统
使用AVPlayer可以实现端到端播放原始媒体资源,本开发指导将以完整地播放一首音乐作为示例,向开发者讲解AVPlayer音频播放相关功能。播放的全流程包含:创建AVPlayer,设置播放资源,设置播放参数(音量/倍速/焦点模式),播放控制(播放/暂停/跳转/停止),重置,销毁资源。在进行应用开发的过程中,开发者可以通过AVPlayer的state属性主动获取当前状态或使用on(‘stateCha
- 鸿蒙视频播放器,主要包括视频获取和视频播放功能:
carlshen8
鸿蒙开发音视频
鸿蒙视频播放器,主要包括视频获取和视频播放功能:1获取本地视频或者网络视频。2通过media.createAVPlayer创建播放器AVPlayer,然后进行视频播放。3通过VideoController进行AVPlayerState的状态管理,如开始,停止,进度控制等。播放的全流程包含:创建AVPlayer,设置播放资源,设置播放参数(音量/倍速),播放控制(播放/暂停/上一个视频/下一个视频)
- IOS后台运行 之 后台播放音乐
aqlomr7170
移动开发xcode人工智能
IOS后台运行之后台播放音乐iOS4开始引入的multitask,我们可以实现像ipod程序那样在后台播放音频了。如果音频操作是用苹果官方的AVFoundation.framework实现,像用AvAudioPlayer,AvPlayer播放的话,要实现完美的后台音频播放,依据app的功能需要,可能需要实现几个关键的功能。首先,播放音频之前先要设置AVAudioSession模式,通常只用来播放的
- 【iOS开发细节】之AVPlayer简介
_老妖怪
思维导图image为什么使用AVPlayer:首先在iOS平台使用播放视频,可用的选项一般有这四个,他们各自的作用和功能如下:image由此可以看出,如果我们不做直播功能AVPlayer就是一个最优的选择。另外AVPlayer是一个可以播放任何格式的全功能影音播放器支持视频格式:WMV,AVI,MKV,RMVB,RM,XVID,MP4,3GP,MPG等。支持音频格式:MP3,WMA,RM,ACC,
- 视屏解密、AVPlayer/IJKPlayer/播放画中画
独孤流
PictureInPictureDemo画中画demo:https://github.com/eye1234456/PictureInPictureDemo.git在线mp4转m3u8:https://mp4.to/m3u8/测试视频下载:https://www.cnblogs.com/v5captain/p/12144699.htmlhttps://www.jianshu.com/p/cab2c
- AVPlayer讲解
你好哈喽哈喽
思维导图image为什么使用AVPlayer:首先在iOS平台使用播放视频,可用的选项一般有这四个,他们各自的作用和功能如下:image由此可以看出,如果我们不做直播功能AVPlayer就是一个最优的选择。另外AVPlayer是一个可以播放任何格式的全功能影音播放器支持视频格式:WMV,AVI,MKV,RMVB,RM,XVID,MP4,3GP,MPG等。支持音频格式:MP3,WMA,RM,ACC,
- (IOS)AVPlayer视频播放完成的通知监听
rightmost
[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(videoPlayEnd)name:AVPlayerItemDidPlayToEndTimeNotificationobject:nil];
- iOS 音视频开发(一)常用音视频框架介绍
小小土豆dev
文章规划iOS音视频开发(一)常用音视频框架介绍(本篇)iOS音视频开发(二)AVAudioRecorder实现录音功能iOS音视频开发(三)MediaPlayer播放本地、远程音频iOS音视频开发(四)MediaPlayer播放本地、远程视频iOS音视频开发(五)AVAudioPlayer/AVPlayer播放本地、远程音频iOS音视频开发(六)AVPlayer播放本地、远程视频iOS音视频开发
- iOS控制屏幕常亮
巴赫海兹
//设置屏幕常亮[UIApplicationsharedApplication].idleTimerDisabled=YES;//取消设置屏幕常亮[UIApplicationsharedApplication].idleTimerDisabled=NO;但是有些控件的存在是不会锁屏的,比如AVPlayer,播放的时候是不会锁屏的,但是暂停或者停止播放之后系统会自动关闭常亮。解决方法:添加一个监听,
- RTMP直播流直接把rtmp://字符串换成https://,再拼接.m3u8,使用AVPlayer播放报错信息:NSLocalizedDescription=你没有访问所请求的资源的许可。
没有一滴汗水是无效的
RTMP直播流直接把rtmp://字符串换成https://,再拼接.m3u8,使用AVPlayer播放报错信息:NSLocalizedDescription=你没有访问所请求的资源的许可。答:如果您直接将RTMP直播流的URL中的"rtmp://"字符串替换为"https://"并拼接为".m3u8"后缀,然后尝试使用AVPlayer播放,但遇到了许可错误的报错信息,这是因为您的操作并没有将RT
- ios音乐播放
八角罗特斯
引入音频,视频库#import@interfaceViewController()@property(nonatomic,strong)AVPlayer*playler;@end@implementationViewController-(void)viewDidLoad{[superviewDidLoad];//Doanyadditionalsetupafterloadingtheview,ty
- iOS 开发之播放本地视频没效果
KODIE
这个问题出在于加载资源的方式上了,下面放四段代码:-(void)playVideo0{NSString*videoPath=[[NSBundlemainBundle]pathForResource:@"Video"ofType:@"mp4"];NSURL*videoURL=[NSURLURLWithString:videoPath];AVPlayerItem*playerItem=[[AVPlay
- HarmonyOS音视频开发概述
上马定江山
harmonyos音视频华为android学习
在音视频开发指导中,将介绍各种涉及音频、视频播放或录制功能场景的开发方式,指导开发者如何使用系统提供的音视频API实现对应功能。比如使用TonePlayer实现简单的提示音,当设备接收到新消息时,会发出短促的“滴滴”声;使用AVPlayer实现音乐播放器,循环播放一首音乐。在每个功能中,会介绍多种实现方式以应对不同的使用场景,以及该场景相关的子功能点。比如在音频播放功能内,会同时介绍音频的并发策略
- 群晖DSM Video Station播放DTS格式电影
执仐者
DTS的问题大家有兴趣可以搜索一下,是一种音频的编码方式,这种编码的音频如果想要解码的话需要喜闻乐见的授权。并不是免费的,此前在ios上播放时就遇到这些问题,AVplayer无法播放,付费18元依然不可,nplayer可以,但是ios9以上购买价格30元,ios9以下60元,原因是9以上解码DTS是引用苹果的,而9一下则需要nplayer交一笔授权费。因此得知群晖不能解码DTS的时候并没有吃惊,但
- IOS音视频分片缓存库IdiotAVPlayer
口子窖
boss让我写博客,说能装X,我就来了!!!☺️这篇文章最先发布在上,今天先拿过来做开山篇。额~~文采不好,不知道怎么写来吧,直接切入正题,给大家看看效果吧,免得不是大家想要的东西,浪费大家的宝贵时间。9724987-ce428f8e23f1ec53.gif本来想给大家看视频的,但是不知道怎么放,哈哈哈。再来看IdiotAVplayer实现了什么功能吧。相信大家看完上面的图片,大概就知道Idiot
- 2018-07-09(补)ios 视频播放
北你妹的风
ios视频播放有以下4种方法:1、AVPlayer2、MPMoviePlayerController3、MPMoviePlayerViewController4、AVPlayerViewController其中,第一种AVPlayer定制化程度最高,自由度最高。第二种和第三种已经过时,ios9之后已经弃用。第四种ios8之后可以使用。第二种和第三种不再讲述了,主要讲第一种和第四种。AVPlayer
- 大师学SwiftUI第18章Part3 - 自定义视频播放器
Alan Hou
swiftui音视频ios前端swift
视频录制和播放视频对用户来说和拍照、显示图片一样重要。和图片一样,Apple框架中内置了播放视频和创建自定义播放器的工具。视频播放器SwiftUI定义了VideoPlayer视图用于播放视频。该视图提供了所有用于播放、停止、前进和后退的控件。视图包含如下初始化方法。VideoPlayer(player:AVPlayer?,videoOverlay:Closure):该初始化方法创建视频播放器来播放
- iOS 音视频录制之播放视频,AVPlayer可播放本地视频和在线视频
煮酒Shae
IOS
文章目录在开发中,单纯使用AVPlayer类是无法显示视频的,要将视频层添加至AVPlayerLayer中,这样才能将视频显示出来,所以先在ViewController的@interface中添加以下属性@property(nonatomic,strong)AVPlayer*player;@property(nonatomic,strong)AVPlayerItem*playerItem;@pro
- 从一个实际问题说说CAShapelayer
Kirn
CoreAnimation图层不仅仅只有CALayer这种简单的图片和颜色绘制的功能,还有一些专用图层,如:CAShapeLayer、CATextLayer、CAGradientLayer、CAEAGLLayer、AVPlayerLayer、CAScrollLayer等。我在过去的工作中用过其中的大部分,而使用频率最高的应该就是CAShapeLayer。CAShapeLayer是一个通过矢量图形而
- AV Foundation 核心功能
MonKey_Money
1.音频播放和记录AVAudioPlayer音频播放和AVAudioRecorder音频记录这两者并不是AVFoundation用于音频播放和记录的唯一方式,确实最简单功能最强大的方法2.视频播放AVFoundation框架可以播放从本地文件或远程流中获取的视频资源,并对视频播放和内容的展示进行控制。这部分核心类是AVPlayer和AVPlayerItem3.媒体捕捉核心类是AVCaptureSe
- iOS AVPlayer的那些坑
那月无痕
转载:https://www.jianshu.com/p/47c7144db817这次主要是总结和记录下视频播放遇到的坑,视频播放采用的是AVPlayer这个控件,语法大致如下:NSURL*url=[NSURLfileURLWithPath:@"视频地址"];AVPlayerItem*playerItem=[AVPlayerItemplayerItemWithURL:url];self.playe
- iOS开发笔记-101:Swift5 - 播放视频
原味蛋炒饭
varplayer:AVPlayer?varplayerViewController=AVPlayerViewController()leturlString:String=videoModel?.videoUrl??""player=AVPlayer(url:NSURL(string:urlString)!asURL)playerViewController.player=player//添加v
- iOS AVPlayerItem 暂停播放同时也暂停缓冲加载
feiyue0823
iOS
在做视频列表的时候,暂停播放了,但是缓冲还是会继续加载。断续播放了好几个视频,就照成了不必要的流量消耗。最好的体验应该是暂停播放的同时也暂停缓冲加载,或者播放下一个视频的时候,暂停上一个视频的缓冲加载。官方文档https://developer.apple.com/documentation/avfoundation/avplayeritem/1388752-canusenetworkresour
- ios音频播放,回调播放结束与开始
飞行的理想
音频播放使用的是AVFoundation框架的AVPlayer,使用通知监听播放结束,使用系统的addPeriodicTimeObserverForInterval监听播放进度,当播放进度开始时开始回调,主要是解决监听播放开始不准确的问题,在使用结束时调用dm_removeNoticAndObsever方法,把通知和kvo清除代码如下////DM_SoundManager.h//Video2///
- iOS AVPlayer
雨城枫盛
1.使用AVPlayer播放在线视频,可自己定制播放器//1申明urlNSURL*playUrl=[NSURLURLWithString:@"http://video.zzyzsw.com/4c4312dab5170b78/6b7c7150a0689152.flv.m3u8"];//2.创建playitemAVPlayerItem*playItem=[AVPlayerItemplayerItemW
- ios视频播放
傻人有傻福i
//本地资源文件NSString*filePath=[[NSBundlemainBundle]pathForResource:@"111.mp4"ofType:nil];//创建视频播放控制器AVPlayerViewController*playerViewController=[[AVPlayerViewControlleralloc]init];//设置视频播放器playerViewContr
- 画中画功能探究
落叶兮兮
最近开始研究iOS14画中画功能的实现,最终分别通过使用AVPlayerViewController构建播放器和AVPlayerLayer构建播放器,分别实现相应的画中画的功能实现的效果图为:AVPlayerViewController实现画中画效果AVPlayerLayer实现画中画效果项目的demo地址为:demo地址AVPlayerViewController实现画中画的功能画中画功能的实现
- springmvc 下 freemarker页面枚举的遍历输出
杨白白
enumfreemarker
spring mvc freemarker 中遍历枚举
1枚举类型有一个本地方法叫values(),这个方法可以直接返回枚举数组。所以可以利用这个遍历。
enum
public enum BooleanEnum {
TRUE(Boolean.TRUE, "是"), FALSE(Boolean.FALSE, "否");
- 实习简要总结
byalias
工作
来白虹不知不觉中已经一个多月了,因为项目还在需求分析及项目架构阶段,自己在这段
时间都是在学习相关技术知识,现在对这段时间的工作及学习情况做一个总结:
(1)工作技能方面
大体分为两个阶段,Java Web 基础阶段和Java EE阶段
1)Java Web阶段
在这个阶段,自己主要着重学习了 JSP, Servlet, JDBC, MySQL,这些知识的核心点都过
了一遍,也
- Quartz——DateIntervalTrigger触发器
eksliang
quartz
转载请出自出处:http://eksliang.iteye.com/blog/2208559 一.概述
simpleTrigger 内部实现机制是通过计算间隔时间来计算下次的执行时间,这就导致他有不适合调度的定时任务。例如我们想每天的 1:00AM 执行任务,如果使用 SimpleTrigger,间隔时间就是一天。注意这里就会有一个问题,即当有 misfired 的任务并且恢复执行时,该执行时间
- Unix快捷键
18289753290
unixUnix;快捷键;
复制,删除,粘贴:
dd:删除光标所在的行 &nbs
- 获取Android设备屏幕的相关参数
酷的飞上天空
android
包含屏幕的分辨率 以及 屏幕宽度的最大dp 高度最大dp
TextView text = (TextView)findViewById(R.id.text);
DisplayMetrics dm = new DisplayMetrics();
text.append("getResources().ge
- 要做物联网?先保护好你的数据
蓝儿唯美
数据
根据Beecham Research的说法,那些在行业中希望利用物联网的关键领域需要提供更好的安全性。
在Beecham的物联网安全威胁图谱上,展示了那些可能产生内外部攻击并且需要通过快速发展的物联网行业加以解决的关键领域。
Beecham Research的技术主管Jon Howes说:“之所以我们目前还没有看到与物联网相关的严重安全事件,是因为目前还没有在大型客户和企业应用中进行部署,也就
- Java取模(求余)运算
随便小屋
java
整数之间的取模求余运算很好求,但几乎没有遇到过对负数进行取模求余,直接看下面代码:
/**
*
* @author Logic
*
*/
public class Test {
public static void main(String[] args) {
// TODO A
- SQL注入介绍
aijuans
sql注入
二、SQL注入范例
这里我们根据用户登录页面
<form action="" > 用户名:<input type="text" name="username"><br/> 密 码:<input type="password" name="passwor
- 优雅代码风格
aoyouzi
代码
总结了几点关于优雅代码风格的描述:
代码简单:不隐藏设计者的意图,抽象干净利落,控制语句直截了当。
接口清晰:类型接口表现力直白,字面表达含义,API 相互呼应以增强可测试性。
依赖项少:依赖关系越少越好,依赖少证明内聚程度高,低耦合利于自动测试,便于重构。
没有重复:重复代码意味着某些概念或想法没有在代码中良好的体现,及时重构消除重复。
战术分层:代码分层清晰,隔离明确,
- 布尔数组
百合不是茶
java布尔数组
androi中提到了布尔数组;
布尔数组默认的是false, 并且只会打印false或者是true
布尔数组的例子; 根据字符数组创建布尔数组
char[] c = {'p','u','b','l','i','c'};
//根据字符数组的长度创建布尔数组的个数
boolean[] b = new bool
- web.xml之welcome-file-list、error-page
bijian1013
javaweb.xmlservleterror-page
welcome-file-list
1.定义:
<welcome-file-list>
<welcome-file>login.jsp</welcome>
</welcome-file-list>
2.作用:用来指定WEB应用首页名称。
error-page1.定义:
<error-page&g
- richfaces 4 fileUpload组件删除上传的文件
sunjing
clearRichfaces 4fileupload
页面代码
<h:form id="fileForm"> <rich:
- 技术文章备忘
bit1129
技术文章
Zookeeper
http://wenku.baidu.com/view/bab171ffaef8941ea76e05b8.html
http://wenku.baidu.com/link?url=8thAIwFTnPh2KL2b0p1V7XSgmF9ZEFgw4V_MkIpA9j8BX2rDQMPgK5l3wcs9oBTxeekOnm5P3BK8c6K2DWynq9nfUCkRlTt9uV
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1解决方案
白糖_
Hibernate
文章摘自:http://blog.csdn.net/yangwawa19870921/article/details/7553181
在编写HQL时,可能会出现这种代码:
select a.name,b.age from TableA a left join TableB b on a.id=b.id
如果这是HQL,那么这段代码就是错误的,因为HQL不支持
- sqlserver按照字段内容进行排序
bozch
按照内容排序
在做项目的时候,遇到了这样的一个需求:
从数据库中取出的数据集,首先要将某个数据或者多个数据按照地段内容放到前面显示,例如:从学生表中取出姓李的放到数据集的前面;
select * fro
- 编程珠玑-第一章-位图排序
bylijinnan
java编程珠玑
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.Random;
public class BitMapSearch {
- Java关于==和equals
chenbowen00
java
关于==和equals概念其实很简单,一个是比较内存地址是否相同,一个比较的是值内容是否相同。虽然理解上不难,但是有时存在一些理解误区,如下情况:
1、
String a = "aaa";
a=="aaa";
==> true
2、
new String("aaa")==new String("aaa
- [IT与资本]软件行业需对外界投资热情保持警惕
comsci
it
我还是那个看法,软件行业需要增强内生动力,尽量依靠自有资金和营业收入来进行经营,避免在资本市场上经受各种不同类型的风险,为企业自主研发核心技术和产品提供稳定,温和的外部环境...
如果我们在自己尚未掌握核心技术之前,企图依靠上市来筹集资金,然后使劲往某个领域砸钱,然
- oracle 数据块结构
daizj
oracle块数据块块结构行目录
oracle 数据块是数据库存储的最小单位,一般为操作系统块的N倍。其结构为:
块头--〉空行--〉数据,其实际为纵行结构。
块的标准大小由初始化参数DB_BLOCK_SIZE指定。具有标准大小的块称为标准块(Standard Block)。块的大小和标准块的大小不同的块叫非标准块(Nonstandard Block)。同一数据库中,Oracle9i及以上版本支持同一数据库中同时使用标
- github上一些觉得对自己工作有用的项目收集
dengkane
github
github上一些觉得对自己工作有用的项目收集
技能类
markdown语法中文说明
回到顶部
全文检索
elasticsearch
bigdesk elasticsearch管理插件
回到顶部
nosql
mapdb 支持亿级别map, list, 支持事务. 可考虑做为缓存使用
C
- 初二上学期难记单词二
dcj3sjt126com
englishword
dangerous 危险的
panda 熊猫
lion 狮子
elephant 象
monkey 猴子
tiger 老虎
deer 鹿
snake 蛇
rabbit 兔子
duck 鸭
horse 马
forest 森林
fall 跌倒;落下
climb 爬;攀登
finish 完成;结束
cinema 电影院;电影
seafood 海鲜;海产食品
bank 银行
- 8、mysql外键(FOREIGN KEY)的简单使用
dcj3sjt126com
mysql
一、基本概念
1、MySQL中“键”和“索引”的定义相同,所以外键和主键一样也是索引的一种。不同的是MySQL会自动为所有表的主键进行索引,但是外键字段必须由用户进行明确的索引。用于外键关系的字段必须在所有的参照表中进行明确地索引,InnoDB不能自动地创建索引。
2、外键可以是一对一的,一个表的记录只能与另一个表的一条记录连接,或者是一对多的,一个表的记录与另一个表的多条记录连接。
3、如
- java循环标签 Foreach
shuizhaosi888
标签java循环foreach
1. 简单的for循环
public static void main(String[] args) {
for (int i = 1, y = i + 10; i < 5 && y < 12; i++, y = i * 2) {
System.err.println("i=" + i + " y="
- Spring Security(05)——异常信息本地化
234390216
exceptionSpring Security异常信息本地化
异常信息本地化
Spring Security支持将展现给终端用户看的异常信息本地化,这些信息包括认证失败、访问被拒绝等。而对于展现给开发者看的异常信息和日志信息(如配置错误)则是不能够进行本地化的,它们是以英文硬编码在Spring Security的代码中的。在Spring-Security-core-x
- DUBBO架构服务端告警Failed to send message Response
javamingtingzhao
架构DUBBO
废话不多说,警告日志如下,不知道有哪位遇到过,此异常在服务端抛出(服务器启动第一次运行会有这个警告),后续运行没问题,找了好久真心不知道哪里错了。
WARN 2015-07-18 22:31:15,272 com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(84)
- JS中Date对象中几个用法
leeqq
JavaScriptDate最后一天
近来工作中遇到这样的两个需求
1. 给个Date对象,找出该时间所在月的第一天和最后一天
2. 给个Date对象,找出该时间所在周的第一天和最后一天
需求1中的找月第一天很简单,我记得api中有setDate方法可以使用
使用setDate方法前,先看看getDate
var date = new Date();
console.log(date);
// Sat J
- MFC中使用ado技术操作数据库
你不认识的休道人
sqlmfc
1.在stdafx.h中导入ado动态链接库
#import"C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","end")2.在CTestApp文件的InitInstance()函数中domodal之前写::CoIniti
- Android Studio加速
rensanning
android studio
Android Studio慢、吃内存!启动时后会立即通过Gradle来sync & build工程。
(1)设置Android Studio
a) 禁用插件
File -> Settings... Plugins 去掉一些没有用的插件。
比如:Git Integration、GitHub、Google Cloud Testing、Google Cloud
- 各数据库的批量Update操作
tomcat_oracle
javaoraclesqlmysqlsqlite
MyBatis的update元素的用法与insert元素基本相同,因此本篇不打算重复了。本篇仅记录批量update操作的
sql语句,懂得SQL语句,那么MyBatis部分的操作就简单了。 注意:下列批量更新语句都是作为一个事务整体执行,要不全部成功,要不全部回滚。
MSSQL的SQL语句
WITH R AS(
SELECT 'John' as name, 18 as
- html禁止清除input文本输入缓存
xp9802
input
多数浏览器默认会缓存input的值,只有使用ctl+F5强制刷新的才可以清除缓存记录。如果不想让浏览器缓存input的值,有2种方法:
方法一: 在不想使用缓存的input中添加 autocomplete="off"; eg: <input type="text" autocomplete="off" name