New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@55hudong/base-module

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@55hudong/base-module

test

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

BaseUIModule

55互动项目中常用的基础模块

  • 1. 对话框(确认 or 取消、确认)
  • 2. 模态框(有无关闭按钮、遮罩关闭等)
  • 3. 日期格式化(将时间戳格式化成 "2017-01-01 00:00:00"等自定义格式)

基础使用说明

所有模块都附着在FF这个对象下面。(FF: 来源于英文的five.)

每一个组件,都是采用面向对象的写法,通过**new Function()形式调用。 前面允许Function()**形式调用,但是方法内部依然会新建一个对象并返回,并且控制台会弹出一个警告:“不建议直接调用方法,而是应该使用new新建一个对象”。

开发说明

采用TDD驱动模式开发, 开发之前提前将需求转化为测试用例,以通过全部测试用例作为实现一个模块的完成标志。 测试框架采用jasmine,支持nodejs测试和浏览器测试。

FAQs

Package last updated on 27 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc