Home  >  Article  >  Web Front-end  >  Detailed explanation of the use of laydate.js date plug-in

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

php中世界最好的语言
php中世界最好的语言Original
2018-04-13 15:27:202924browse

This time I will bring you a detailed explanation of how to use the laydate.js date plug-in. What are the precautions when 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 js in angular-cli.

json

3. Modify laydate.js

Find this sentence to complete the path and deleteversion number

"<a href="http://www.php.cn/code/8212.html" target="_blank">module</a>s/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!

Statement:
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