<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sheep206的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/sheep206</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; sheep206]]></copyright><item><title><![CDATA[Vue组件中name的作用]]></title><link>https://blog.youkuaiyun.com/sheep206/article/details/125136083</link><guid>https://blog.youkuaiyun.com/sheep206/article/details/125136083</guid><author>sheep206</author><pubDate>Sun, 05 Jun 2022 20:19:36 +0800</pubDate><description><![CDATA[Vue组件中name的作用]]></description><category></category></item><item><title><![CDATA[VUE动态组件的使用]]></title><link>https://blog.youkuaiyun.com/sheep206/article/details/125130521</link><guid>https://blog.youkuaiyun.com/sheep206/article/details/125130521</guid><author>sheep206</author><pubDate>Sun, 05 Jun 2022 12:38:05 +0800</pubDate><description><![CDATA[VUE动态组件的使用]]></description><category></category></item><item><title><![CDATA[在前端工程中使用require.context实现工程自动化]]></title><link>https://blog.youkuaiyun.com/sheep206/article/details/125126341</link><guid>https://blog.youkuaiyun.com/sheep206/article/details/125126341</guid><author>sheep206</author><pubDate>Sun, 05 Jun 2022 10:44:25 +0800</pubDate><description><![CDATA[在前端工程中使用require.context实现工程自动化]]></description><category></category></item><item><title><![CDATA[获取本地时间和北京时间(前端处理)]]></title><link>https://blog.youkuaiyun.com/sheep206/article/details/110408075</link><guid>https://blog.youkuaiyun.com/sheep206/article/details/110408075</guid><author>sheep206</author><pubDate>Mon, 30 Nov 2020 22:41:07 +0800</pubDate><description><![CDATA[在Vue项目中获取本地时间和北京时间
1、给date原型挂载format属性
在项目放js的地方放上以下代码：
Date.prototype.strftime = function(format){
  var o = {
    "M+" :  this.getMonth()+1,  //month
    "d+" :  this.getDate(),     //day
    "h+" :  this.getHours(),    //hour
    "m+" :  this.getMinutes]]></description><category></category></item></channel></rss>