Home >Web Front-end >JS Tutorial >Detailed explanation of the use of laydate.js date plug-in
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.
json3. 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!