Detailed explanation of the use of laydate.js date plug-in

php中世界最好的语言
Release: 2018-04-13 15:27:20
Original
2824 people have browsed it

This time I will bring you a detailed explanation of how to use the laydate.js date plug-in. What are theprecautionswhen using the laydate.js date plug-in? The following is a practical case. Let’s take a look.

Preface

After laydate.js has been greatly rewritten by Xianxin, it has become more and more powerful and more flexible to use, as everyone knows. Angular does not support the direct introduction of js files. The following describes how to introduce laydate.js into the project (it can also be used to introduce other js files, and there may be some differences)

Methods as below:

1. Put the downloaded js and theme files in laydate under a unified file. I put it under asset

2. Configure jsin angular-cli.

json

3. Modify laydate.js

Find this sentence to complete the path anddeleteversion number

"modules/laydate/":"assets/theme/")default/laydate.css"

4. Declare and use in ts file 5: Compile and run~

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Recommended reading:



The above is the detailed content of Detailed explanation of the use of laydate.js date plug-in. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!