<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[star_29的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/star_29</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; star_29]]></copyright><item><title><![CDATA[JS判断手机是否为横竖屏]]></title><link>https://blog.youkuaiyun.com/star_29/article/details/106115142</link><guid>https://blog.youkuaiyun.com/star_29/article/details/106115142</guid><author>star_29</author><pubDate>Thu, 14 May 2020 10:51:45 +0800</pubDate><description><![CDATA[window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", function() {
 if (window.orientation === 180 || window.orientation === 0) { 
    // alert('竖屏状态！');
  } 
  if (window.orientation === 90 || window.orientation === -90]]></description><category></category></item><item><title><![CDATA[微信小程序导航框使用扫一扫功能]]></title><link>https://blog.youkuaiyun.com/star_29/article/details/106050950</link><guid>https://blog.youkuaiyun.com/star_29/article/details/106050950</guid><author>star_29</author><pubDate>Thu, 14 May 2020 09:12:51 +0800</pubDate><description><![CDATA[项目中有需求在导航框中使用微信扫一扫功能，特此记录一下。

与页面点击按钮调取扫一扫不同，如果是页面按钮 的话，每次点击可以每次调用，但是在导航栏里就需要有其他的方法。
 //首先我们在data里定义一个变量
 data: {
    on: true
 },
 //紧接着我们在onShow里边定义
 //这里我们不能定义到onLoad里，否则只能加载一次。
 onShow: function () {
    console.log('onShow')
    var that = this
    if]]></description><category></category></item><item><title><![CDATA[微信小程序两个按钮选中状态的切换]]></title><link>https://blog.youkuaiyun.com/star_29/article/details/105936101</link><guid>https://blog.youkuaiyun.com/star_29/article/details/105936101</guid><author>star_29</author><pubDate>Tue, 05 May 2020 18:03:47 +0800</pubDate><description><![CDATA[记录一下再微信小程序当中如遇到两个按钮需要进行状态切换时所需的场景。

下面上代码：
&lt;view class="yue-view"&gt;
    &lt;image src="../../images/yue.png" class="yue"&gt;&lt;/image&gt;
    &lt;text&gt;余额卡&lt;/text&gt;
    &lt;image src="{{cu...]]></description><category></category></item><item><title><![CDATA[Vue 点击元素滑动到指定元素]]></title><link>https://blog.youkuaiyun.com/star_29/article/details/105551527</link><guid>https://blog.youkuaiyun.com/star_29/article/details/105551527</guid><author>star_29</author><pubDate>Thu, 16 Apr 2020 10:21:52 +0800</pubDate><description><![CDATA[Vue 点击元素滑动到指定元素
工作中遇到一个选择答题卡跳转到指定题号的功能，用了a标签的锚点链接，效果没有页面滑动效果好，特此记录一下。
	&lt;template&gt;
		&lt;div class="index"&gt;
			// 这里注意你需要在你需要跳转的元素上指定一个元素class名字
			&lt;div class="item" :class="'quesshow' + in...]]></description><category></category></item><item><title><![CDATA[Vue 正计时器组件]]></title><link>https://blog.youkuaiyun.com/star_29/article/details/105505567</link><guid>https://blog.youkuaiyun.com/star_29/article/details/105505567</guid><author>star_29</author><pubDate>Tue, 14 Apr 2020 10:26:49 +0800</pubDate><description><![CDATA[Vue 计时器组件
工作中遇到了一个时间正计时的功能。
另外涉及到有Vue父组件调用子组件中的data和method,作为记录。
下面贴代码~
HTML部分
&lt;template&gt;
    &lt;div class="timer"&gt;
        &lt;div ref="startTimer"&gt;00:00:00&lt;/div&gt;
    &lt;/div&gt;
...]]></description><category></category></item><item><title><![CDATA[使用css排版推特上的星星爆炸效果。]]></title><link>https://blog.youkuaiyun.com/star_29/article/details/103925332</link><guid>https://blog.youkuaiyun.com/star_29/article/details/103925332</guid><author>star_29</author><pubDate>Fri, 10 Jan 2020 15:47:01 +0800</pubDate><description><![CDATA[hover效果实现。
我们先贴上雪碧图

此次效果利用到css的steps（）方法，
那steps（）是什么呢。
steps（）阶跃函数，是transition-timing-function和animation-timing-function两个属性的属性值，他是表示两个关键帧之间的动画效果，默认是ease。
steps（）有两个参数：参数一是把这次过渡分成几段，这几段其实是在时间上分为几段去显...]]></description><category></category></item></channel></rss>