Skip to content

Blog Công Nghệ

MENUMENU
  • Trang chủ
  • Giới Thiệu
  • Lập Trình
    • Lập Trình Website
      • Laravel
        • Phân Tích Dự Án
      • PHP
      • SQL
      • HTML
      • CSS
      • Javascipt
      • My Project
      • Wordpress
    • Luyện Skill
    • Lập trình winform
    • CSDL
    • Lập Trình Android
    • Trí tuệ nhân tạo
    • Khai Khoáng Dữ Liệu
    • Arduino
    • Khác
    • Đồ án
  • Phần Mềm
    • Powerpoint
    • Tool
  • Cuộc sống và Giải trí
    • Hợp âm
    • web5ngay - youtube
    • Công Giáo
    • Kỹ Năng Sống
    • Street Workout
  • Danh sách bài viết
  • Guide line
    • Guild line phỏng vấn
    • Guide lines Laravel
    • Guide line Module Frontend
  • Tóm tắt sách
  • Fanpage

Blog Công Nghệ

Nơi chia sẻ kiến thức

Document My Library – Module FE

2 Tháng Hai, 2023 by admin
Lượt xem: 15

 

Contents

  • 1. File
    • 1.1 dataURLtoFile
  • 2. Time
    • 2.1 getYears
    • 2.2 getMonths
    • 2.3 getHours
    • 2.4 getMinutes
    • 2.5 daysInMonth
    • 2.6 formatDate
  • 3. Validate
    • 3.1 checkOnlyNumber
  • 4. Other
    • 4.1 scrollToTop
    • 4.2 stripHtml
    • 4.3 convertBase64
  • 5. Vue 2
  • 6. Vue 3
    • 6.1 SpinnerV3

1. File

1.1 dataURLtoFile

dataURLtoFile(dataurl, filename)
Description: parse base64 to file like input form
Response: File
Params: – filename: Ex: test.jpg

2. Time

2.1 getYears

getYears(from, to, select = false)
Description: data years from->to
Response: Array
Params: – Select:  | true return type item { value: 1, name: ‘1’} else only number

2.2 getMonths

getMonths(from = 1, to = 12, select = false)
Description: data month from->to
Response: Array
Params: – Select:  | true return type item { value: 1, name: ‘1’} else only number

2.3 getHours

getHours(from = 0, to = 23, select = false)
Description: data hour from->to
Response: Array
Params: – Select:  | true return type item { value: 1, name: ‘1’} else only number

2.4 getMinutes

getMinutes(step = 5, select = false)
Description: data minutes 0 – 59 by step
Response: Array
Params: – Select:  | true return type item { value: 1, name: ‘1’} else only number

2.5 daysInMonth

daysInMonth(dateString, subName = true, select = false)
Description: data days in month
Response: Array
Params: – dateString date type string exp: 1990-01-01
– subName: name have ” 日” in response item
– Select:  | true return type item { value: 1, name: ‘1’} else only number

2.6 formatDate

formatDate(date)
Description: exp: 1990-01-01 -> 1990年1月1
Response: String

3. Validate

3.1 checkOnlyNumber

checkOnlyNumber(string)
Description: check only number of string
Response: Boolean
true => is number else not number

4. Other

4.1 scrollToTop

scrollToTop(top = 0)
Description: handle scroll to top
Response: Action scoll to top

4.2 stripHtml

stripHtml(html)
Description: strip html
Response: String

4.3 convertBase64

convertBase64(val)
Description: text to base64
Response: String

5. Vue 2

6. Vue 3

6.1 SpinnerV3

<SpinnerV3 :loading="loading" />
Description: Component for loading

Related posts:

  1. My module – cắm vào là xài
  2. Guide line Module Frontend

Post navigation

Previous Post:

AWS trong một bài viết duy nhất

Next Post:

Javascript – course

Trả lời Hủy

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Ẩn sidebar

Tìm kiếm

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

Blog Công Nghệ

Bài viết mới

  • Master typescript
  • Sendmail trong Laravel sử dụng dịch vụ SES, SQS của Amazon
  • Install SSL in Nginx Ubuntu
  • Docker study
  • Bảo vệ: Hướng dẫn code bot Telegram easy game

Lượng truy cập

0074459
Visit Today : 55
Visit Yesterday : 178
This Month : 730
Who's Online : 7
© 2025 Blog Công Nghệ | WordPress Theme by Superbthemes