it.toriphes.timeago:用于确定和显示“以前”时间的小部件
- U5_847933了解作者
- 4.5KB文件大小
- zip文件格式
- 0收藏次数
- VIP专享资源类型
- 0下载次数
- 2022-06-14 20:06上传日期
Alloy Time Ago小部件
此小部件允许您确定和显示“以前”时间。
特征
计算“前”时间
本地化支持
快速开始
下载此存储库并查阅以了解如何安装它,或者直接使用 :
$ gittio install it.toriphes.timeago
用它
在合金中将小部件添加到您的视图中
< Alloy>
< Window xss=removed>
< Widget xss=removed xss=removed xss=removed>
</ Window>
</ Alloy>
或在控制器中
var ta = Alloy . createWidget ( "it.toriphes.timeago" ) ;
ta . inWords ( "2012-1

it_toriphes_timeago-master.zip
- it.toriphes.timeago-master
- i18n
- nl
- strings.xml791B
- it
- strings.xml754B
- en
- strings.xml767B
- views
- widget.xml38B
- controllers
- widget.js1.4KB
- widget.json381B
- README.md1.5KB
内容介绍
# Alloy *Time Ago* widget [](http://www.appcelerator.com/alloy/)
This widget allows you to determine and display the "ago" time.
## Features
* Calculate the "ago" time
* Localization support
## Quick Start
Download this repository and consult the [Alloy Documentation](http://docs.appcelerator.com/platform/latest/#!/guide/Alloy_XML_Markup-section-35621528_AlloyXMLMarkup-ImportingWidgets) on how to install it, or simply use the [gitTio CLI](http://gitt.io/cli):
`$ gittio install it.toriphes.timeago`
### Use it
* In alloy add the widget to your View
```xml
<alloy rel='nofollow' onclick='return false;'>
<Window class="container">
<Widget id="ta" src="it.toriphes.timeago" date="2012-10-08" />
</Window>
</Alloy>
```
* or in the controller
```javascript
var ta = Alloy.createWidget("it.toriphes.timeago");
ta.inWords("2012-10-08");
```
## Localize
Localization file are in `$project_root/app/widgets/it.toriphes.timeago/i18n`
If a localization is not present within the widget you can write it and send a pull request or implement the translated strings in your localization file
## Options
All the options are passed to the label object. Special option
| Parameter | Type | Default |
| ---------- | ---------- | ----- |
| date | `string`\|`object`\|`array`\|`Date`\|`Moment` | undefined
## Methods
| Function | Parameters | Usage |
| ---------- | ---------- | ----- |
| inWords | `string`\|`object`\|`array`\|`Date`\|`Moment` | Returns the timeago string
评论



相关推荐
- PHP框架-yii2-Git-20200805.zip由于git下载实在太慢了,因此提供给大家下载。 1、下载归档文件 2、将下载的文件解压缩到 Web 访问的文件夹中。 3、修改 config/web.php 文件,给 cookieValidationKey 配置项添加一个密钥 (侵权请联系删除)
- test-git-web-interface:测试以查找GitHub,GitLab等Git Web界面上的错误。 alert测试 测试以查看GitHub和GitLab之类的Git Web界面如何准确地检测错误。 测验 阿西多克
- QuickXSS:使用Bash自动化XSS使用Waybackurls,GF,GF模式和Dalfox自动执行XSS的Bash脚本。 这是他们的存储库: 先决条件 在计算机中安装Go,然后安装所需的工具。 要在系统中安装Go,请执行以下操作: sudo apt install -y golang export ...
- react-legit:适用于表单的可组合且由组件驱动的验证库React合法 您正在等待的简单表单验证:) 简单的例子 import React from "react" import { Validate , ValidationGroup } ... < div xss=removed> < label> Name: < / label > < input name = "name" value =
- xss-platform.rarThinkPHP的xss平台源码,支持PHP7+,安装方便,自带11个常用模块
- DigitalView:数位检视DigitalView 自定义视图以在电子时钟中显示数字 用法 在布局中包括DigitalView小部件。...< me xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> long l = 12345 ; digitalV
- XSS-Catcher:查找盲目XSS,但为什么不在时收集数据XSS麦田守望者》 在和上运行的XSS盲检测框架。 XSS Catcher是一个简单的应用程序,可促进盲目的跨站点脚本攻击和旨在收集数据的攻击(例如cookie,会话/本地存储,屏幕截图等)。 •••••• 特征 生成简单的可...
- dhcp-hostname-injector通常,这将在编码错误的SOHO路由器Web界面上获得XSS。 我敢肯定,还有十亿其他事情可以做到这一点-我不在乎。 受 cos的启发,我认为他曾经这样做过。 作者 蒂姆·噪声(Tim Noise) 安装 git clone 用法 最好在...
- njaXt:不只是另一个XSS工具git clone https://github.com/ujjwal96/njaXt.git cd njaXt ./setup.sh source venv/bin/activate 常问问题 什么是XSS? 跨站点脚本攻击(XSS)是一种基于Web的攻击,其中恶意脚本被注入到受信任的网站中并在用户...
- xss平台源码xss平台,可以实现XSS盲打等,需要的朋友可以下载。
最新资源