首页 \ 问答 \ AngularJS类似于jQuery为了keydown而阻止了默认?(AngularJS analogue to jQuery preventDefault for keydown?)

AngularJS类似于jQuery为了keydown而阻止了默认?(AngularJS analogue to jQuery preventDefault for keydown?)

我需要浏览器响应聚焦可滚动框中的keydown箭头事件。 这里是一个调皮者来展示我的意思

http://plnkr.co/edit/Okch5dEByFkueJl0DmwG

即使我告诉事件停止使用event.stopPropagation()传播并使事件处理程序返回false该框仍然在keydown上滚动。


I need the browser to respond to keydown arrow events in focused scrollable boxes. Here is a Plunker to show what I mean

http://plnkr.co/edit/Okch5dEByFkueJl0DmwG

Even if I tell the event to stop propagating with event.stopPropagation() and make the event handler return false the box keeps scrolling on keydown.


原文:https://stackoverflow.com/questions/15399874
更新时间:2024-05-09 20:05

最满意答案

现在有一个亚马逊支持的Android SDK: http//aws.amazon.com/sdkforandroid/ 。 它只是自2010年底以来,但它似乎运作良好 - 它允许我轻松地上传一张照片到S3。


There is now an Amazon-supported Android SDK: http://aws.amazon.com/sdkforandroid/ . It's only been out since the end of 2010, but it seems to work well - it allowed me to easily upload a photo to S3.

相关问答

更多
  • 您可以使用gsutil将数据从Google Cloud Storage存储桶复制到Amazon存储桶,方法是使用以下命令: gsutil -m rsync -rd gs://your-gcs-bucket s3://your-s3-bucket 请注意,上面的-d选项将导致gsutil rsync从您的S3存储桶中删除不存在于您的GCS存储桶中的对象(除了添加新对象外)。 如果您只想从GCS添加新对象到您的S3存储桶,您可以忽略该选项。 You can use gsutil to copy data fr ...
  • 你没有设置一个桶。 它位于你的s3.yml文件中,但是你没有从你对has_attached_file的调用中读取这个值。 Paperclip S3 docs: http : //rubydoc.info/gems/paperclip/Paperclip/Storage/S3#s3_protocol-instance_method 另外,请注意那些告诉你不要使用Heroku的s3.yml文件的人。 这是一种浪费,只是添加了抽象,无需购买任何东西。 您已经使用所需的值设置了ENV,因此请使用它们。 我之前已经完 ...
  • EC2实例就像运行Windows或Linux的远程计算机,您可以在其上安装所需的任何软件,包括运行PHP代码的Web服务器和数据库服务器。 Amazon S3只是一种存储服务,通常用于存储大型二进制文件。 Amazon还拥有其他存储和数据库服务,如关系数据库的RDS和NoSQL的DynamoDB。 An EC2 instance is like a remote computer running Windows or Linux and on which you can install whatever s ...
  • 您需要启用S3访问日志: http : //docs.aws.amazon.com/AmazonS3/latest/dev/ServerLogs.html 然后,您应该能够解析日志以获取所需的信息。 一旦你开始获取日志,有很多选项可以解析它们,这里有一些我通过快速搜索找到的: s3stat S3-日志分析仪 Loggly S3支持 You need to enable S3 access logs: http://docs.aws.amazon.com/AmazonS3/latest/dev/ServerL ...
  • 您发布的S3存储链接用于Docker Registry设置,不适用于Docker卷。 您需要的是将硬盘上的文件夹映射到容器。 因此,让我们假设您/var/www/uploads主机上的/var/www/uploads映射到容器中的uploads内容。 现在你想要的是/var/www/uploads作为S3支持的文件夹实际挂载。 为此,亚马逊推出了AWS Storage Gateway。 您可以使用它在您的系统上创建一个支持S3的文件夹。 以下是来自亚马逊的一篇文章,详细介绍了如何配置它们 http://do ...
  • 现在有一个亚马逊支持的Android SDK: http : //aws.amazon.com/sdkforandroid/ 。 它只是自2010年底以来,但它似乎运作良好 - 它允许我轻松地上传一张照片到S3。 There is now an Amazon-supported Android SDK: http://aws.amazon.com/sdkforandroid/ . It's only been out since the end of 2010, but it seems to work w ...
  • 您可以使用以下snipet将图像上传到Amazon S3 (确保您不在MainThread 执行此操作): BasicAWSCredentials basicAWSCredentials = new BasicAWSCredentials( ACCESS_KEY, SECRET_KEY ); AmazonS3Client s3Client = new AmazonS3Client(basicAWSCredentials); s3 ...
  • 如果有人遇到同样的问题,我通过评论以下内容来解决我的问题: # h5bp/location/expires.conf location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc)$ { access_log off; add_header Cache-Control "max-age=2592000"; } 现在所有图片显示和附件下载没有任何问题。 In case anyone stumbles into the sa ...
  • 首先,我们必须提供我们的存储桶名称和对象(请参阅aws-android-sdk-1.4.3/samples/S3_SimpleDB_SNS_SQS_Demo以获取完整的指南)我们要打开然后获取对象的URL: AWSCredentials myCredentials = new BasicAWSCredentials("YOUR_AMAZON_ACCESS_KEY_ID", "YOUR_AMAZON_SECRET_KEY_ID"); AmazonS3 s3client = new Amazon ...
  • http://aws.amazon.com/about-aws/whats-new/2010/05/19/announcing-amazon-s3-reduced-redundancy-storage/ 减少冗余存储(RRS)是Amazon S3中的一种新存储选项,通过以比Amazon S3标准存储更低的冗余级别存储非关键,可重现的数据,使客户能够降低成本。 它提供了一种经济高效的高可用性解决方案,用于分发或共享在其他地方持久存储的内容 冰川: http : //aws.amazon.com/glacier ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)