<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[YuT_ian的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/YuT_ian</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; YuT_ian]]></copyright><item><title><![CDATA[为什么要学习python?]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/134011046</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/134011046</guid><author>YuT_ian</author><pubDate>Tue, 24 Oct 2023 14:08:03 +0800</pubDate><description><![CDATA[Python是一种广泛使用的编程语言，它的简洁易读以及强大的功能使得它成为了许多人喜爱的编程语言之一。无论是初学者还是有经验的开发者，学习Python都是非常有价值的。它的简单易学、广泛的应用领域、强大的功能库、丰富的资源以及适合各个层次的开发者，使得Python成为了一个理想的编程语言。无论是在线论坛、教程、开发文档还是开源项目，Python社区提供了大量的资源，可以帮助你解决问题并提升你的编程技能。3. 强大的功能库：Python拥有丰富的功能库和模块，可以帮助你在开发过程中节省大量的时间和精力。]]></description><category></category></item><item><title><![CDATA[vue3 proxy缺点]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/128675204</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/128675204</guid><author>YuT_ian</author><pubDate>Fri, 13 Jan 2023 15:43:25 +0800</pubDate><description><![CDATA[Proxy是 ES6 中新增的一个特性，翻译过来意思是"代理"，用在这里表示由它来“代理”某些操作。Proxy 让我们能够以简洁易懂的方式控制外部对对象的访问。其功能非常类似于设计模式中的代理模式。Proxy 可以理解成，在目标对象之前架设一层“拦截”，外界对该对象的访问，都必须先通过这层拦截，因此提供了一种机制，可以对外界的访问进行过滤和改写。使用 Proxy 的核心优点是可以交由它来处理一些非核心逻辑（如：读取或设置对象的某些属性前记录日志；设置对象的某些属性值前，需要验证；某些属性的访问控制等）]]></description><category></category></item><item><title><![CDATA[javascript为何跨域]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/121538934</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/121538934</guid><author>YuT_ian</author><pubDate>Thu, 25 Nov 2021 15:30:03 +0800</pubDate><description><![CDATA[产生跨域的情况


同一域名，不同端口；


同一域名，不同协议；


同一域名，不同二级域名；


主域相同，子域不同；


不同域名；


使用与域名对应的IP；


对于最后一种，判断为跨域是因为：域是通过‘URL的首部’来识别而不会去尝试判断相同的IP地址是否对应同一个域。
URL首部指window.location.protocol+window.location.host
另外，如果是协议和端口造成的跨域问题，前端没有办法解决。
JavaScript解决方案
1.document.domain+]]></description><category></category></item><item><title><![CDATA[vue suk规则]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/121328438</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/121328438</guid><author>YuT_ian</author><pubDate>Mon, 15 Nov 2021 09:46:26 +0800</pubDate><description><![CDATA[&lt;template&gt;
  &lt;div class="home"&gt;
    &lt;el-table style="width: 100%" border :data="tableData"&gt;
      &lt;el-table-column
        prop="name"
        :label="item"
        width="180"
        v-for="(item, index) in arrName"
        :key="ind]]></description><category></category></item><item><title><![CDATA[微信小程序(分类菜单左右联动)]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/120197406</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/120197406</guid><author>YuT_ian</author><pubDate>Thu, 09 Sep 2021 11:24:14 +0800</pubDate><description><![CDATA[wxml
&lt;view class="menu"&gt;
  &lt;scroll-view class="men_left" scroll-y="true"&gt;
    &lt;view class="{{leftNum==index?'active':''}}" wx:for="{{menuArr}}" wx:key="*this" bindtap="leftClickFn" data-index='{{index}}'&gt;{{item.title}}&lt;/view&gt;
  &lt;]]></description><category></category></item><item><title><![CDATA[一维数组转二维数组]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/119640175</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/119640175</guid><author>YuT_ian</author><pubDate>Thu, 12 Aug 2021 11:35:41 +0800</pubDate><description><![CDATA[使用场景举例：接口返回一个数组对象，展示时每行固定显示n个，则可将返回的数组转成二维数组[[…n], […n]…]的形式循环展示。
代码示例
let baseArray = [1, 2, 3, 4, 5, 6, 7, 8];
  len len = baseArray.length;
  let n = 4; //假设每行显示4个
  let lineNum = len % 4 === 0 ? len / 4 : Math.floor( (len / 4) + 1 );
  let res = [];
  ]]></description><category></category></item><item><title><![CDATA[input只能输入0到100的数字(防抖处理)]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/118301674</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/118301674</guid><author>YuT_ian</author><pubDate>Mon, 28 Jun 2021 13:47:30 +0800</pubDate><description><![CDATA[&lt;input type="number" oninput="inputChange(value)" id="input" &gt;                     

let timer = 0
function inputChange(val) {
  console.log(val)
  clearTimeout(timer)
  const input = document.getElementById('input')
  timer = setTimeout(function () ]]></description><category></category></item><item><title><![CDATA[微信小程序分包]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/117689407</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/117689407</guid><author>YuT_ian</author><pubDate>Tue, 08 Jun 2021 09:25:19 +0800</pubDate><description><![CDATA[总所周知小程序包大小不能超过2M
如果超过2M就需要使用分包
分包以后 总包不能超过20M  单包不能超过2M
在小程序app.json里面的pages同级创建分包
"subpackages": [
    {
      "root": "pagesA/", //分包名称
      "independent":true, //是否是独立包
      "pages": [
        "water/index"//地址路径
      ]
    }
  ],

再创建对应的pagesA文件夹即分包]]></description><category></category></item><item><title><![CDATA[支付宝积分领取小球模拟]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/117512167</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/117512167</guid><author>YuT_ian</author><pubDate>Thu, 03 Jun 2021 10:15:25 +0800</pubDate><description><![CDATA[&lt;div class='foo'&gt;&lt;/div&gt;
&lt;style&gt;
.foo {
  display: flex;
  font-size: 10px;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  width: 30px;
  height: 30px;
  position: fixed;
  color: #FFFFFF;
  top: 30rpx;
  left: 7]]></description><category></category></item><item><title><![CDATA[vue使用qrcodejs2生成二维码]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/116228160</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/116228160</guid><author>YuT_ian</author><pubDate>Wed, 28 Apr 2021 10:31:38 +0800</pubDate><description><![CDATA[安装插件
npm i qrcodejs2 -S

使用页面
&lt;template&gt;
&lt;div id="qrcode" style="width:200px;height:200px;margin-top:30px" ref="qrCodeUrl"&gt;&lt;/div&gt;
&lt;template&gt;

&lt;script&gt;
	import QRCode from 'qrcodejs2'  //引入qrcodejs2
	
	mounted () {
	//vue需要在mou]]></description><category></category></item><item><title><![CDATA[vue+onlyoffice实现编辑和预览]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/116153492</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/116153492</guid><author>YuT_ian</author><pubDate>Mon, 26 Apr 2021 14:03:45 +0800</pubDate><description><![CDATA[基本配置使用
1 index.html引入后台配置好的office服务器
&lt;script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"&gt;&lt;/script&gt;

2 封装组件
&lt;template&gt;
    &lt;div id="monitorOffice"&gt;&lt;/div&gt;
&lt;/template&gt;
&lt;script&g]]></description><category></category></item><item><title><![CDATA[vite+vue3+Element3搭建]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/116124873</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/116124873</guid><author>YuT_ian</author><pubDate>Sun, 25 Apr 2021 13:23:44 +0800</pubDate><description><![CDATA[npm init vite-app 文件名   创建项目
npm i axios
npm i Element3

main.js文件
import 'element3/lib/theme-chalk/index.css'  //Element3 css文件
import axios from 'axios'
import { createApp } from 'vue'
import router from './router/index';  //路由文件路径
import App from './App]]></description><category></category></item><item><title><![CDATA[vue h5页面禁止页面放大缩小]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/115866054</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/115866054</guid><author>YuT_ian</author><pubDate>Mon, 19 Apr 2021 15:34:13 +0800</pubDate><description><![CDATA[安卓需要在html里面设置meta
&lt;meta charset="utf-8"&gt;
&lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"&gt;

ios需要在 app.vue srcipt里面设置  或者html srcrpt里面设置
&lt;script&]]></description><category></category></item><item><title><![CDATA[记录[使用正则校验遇见的一些问题]]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/115613995</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/115613995</guid><author>YuT_ian</author><pubDate>Mon, 12 Apr 2021 10:19:46 +0800</pubDate><description><![CDATA[前几天使用正则做了一个输入框校验
需求:只能输入数字,并且保留两位小数
习惯性的使用了οnkeyup=正则这样直接去校验
问题:在输入框输入以后由于使用了replace删除不符合正则的字符串,正常输入没有问题,如果你输入中文会被删除,但是replace是删除成空,会导致输入中文被删除以后,后续怎么输入都是空,变量不存在值,监听不到值。
后面解决方法
//watch监听
watch:{
    stringNum(newVal) {
                let a = newVal.split(']]></description><category></category></item><item><title><![CDATA[封装wangEditor富文本编辑器]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/114267288</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/114267288</guid><author>YuT_ian</author><pubDate>Mon, 01 Mar 2021 17:20:47 +0800</pubDate><description><![CDATA[wangEditor是一个轻量级富文本编辑器，前端常用的富文本编译器还有tinymce,wangEditor,kindeditor…
1.使用npm下载wangeditor
npm i wangeditor

2.在components下创建editor.vue文件
&lt;template lang="html"&gt;
  &lt;div style="width:80%;float:left" class="editor"&gt;
    &lt;div ref="toolbar" class="to]]></description><category></category></item><item><title><![CDATA[vue使用lodash进行函数节流处理]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/114267210</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/114267210</guid><author>YuT_ian</author><pubDate>Mon, 01 Mar 2021 17:16:14 +0800</pubDate><description><![CDATA[1.npm i lodash 安装lodash插件
2.在mian.js中进行配置
import { _ } from "lodash";

Vue.prototype._ = _;


3. 使用节流函数
export default {
data() {
    return {
    };
  },
  methods: {
	confirm: _.throttle(function () {
      //this.dialogVisible = false;
      this.$post(]]></description><category></category></item><item><title><![CDATA[动态边框]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/113976191</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/113976191</guid><author>YuT_ian</author><pubDate>Tue, 23 Feb 2021 10:48:10 +0800</pubDate><description><![CDATA[&lt;html&gt;
&lt;title&gt;动态的边框&lt;/title&gt;
&lt;style&gt;
  .border,
  .border::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .border {
    width: 200px;
    height: 200px;
    margin: auto;
    color: #69ca]]></description><category></category></item><item><title><![CDATA[手把手教你使用Vuex，猴子都能看懂的教程]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/113885377</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/113885377</guid><author>YuT_ian</author><pubDate>Sat, 20 Feb 2021 16:33:16 +0800</pubDate><description><![CDATA[为什么要做这篇文集呢？市面上关于vuex的教程多如牛毛，甚至vuex被某些大神都封装出花儿来了；一方面是想从最简单最基础的地方带大家使用一下vuex，另一方面也是想让自己复习一下vuex，好，不多废话了，接下来我们简单对vuex介绍一下，这究竟是个啥？
第一步，如果你想了解一个技术，就去他的官网去看，准没错，进入官网，映入眼帘的就是“vuex是什么”：

如图所示，它是一个程序里面的状态管理模式，它是集中式存储所有组件的状态的小仓库，并且保持我们存储的状态以一种可以预测的方式发生变化。对于可以预测，现在我不]]></description><category></category></item><item><title><![CDATA[QQ内置浏览器唤起分享面板]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/113881702</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/113881702</guid><author>YuT_ian</author><pubDate>Sat, 20 Feb 2021 13:41:59 +0800</pubDate><description><![CDATA[引入 &lt;script src="https://cdn.staticfile.org/vue/2.4.3/vue.min.js"&gt;&lt;/script&gt;

mqq.data.setShareInfo({
        share_url: encodeURI(window.location.href),//分享的url 必须和网页url一致
        title: 'w1dsadsadsa',//分享的标题
        desc : 'dsadasdsads',//内容
  ]]></description><category></category></item><item><title><![CDATA[axios请求封装--封装api]]></title><link>https://blog.youkuaiyun.com/YuT_ian/article/details/113589978</link><guid>https://blog.youkuaiyun.com/YuT_ian/article/details/113589978</guid><author>YuT_ian</author><pubDate>Wed, 03 Feb 2021 11:23:01 +0800</pubDate><description><![CDATA[npm i axios 下载axios插件
main.js设置
import axios from 'axios'; //引入axios请求
axios.defaults.withCredentials=true; 为true是跨域时携带用户用户凭证  false不会携带用户凭证

创建request.js文件
import axios from 'axios'
import {Message, MessageBox} from 'element-ui'
// var root = process.env.]]></description><category></category></item></channel></rss>