上一页 1 2 3 4 5 6 ··· 15 下一页
  2023年4月4日
摘要: 网址:https://www.tslang.cn/docs/handbook/typescript-in-5-minutes.html // 函数重新实现 解决方法 在文件夹中创建tsconfig.json即可 function hello(name:string) { return 'hello' 阅读全文
posted @ 2023-04-04 17:39 法老的微笑 阅读(97) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2023-04-04 15:14 法老的微笑 阅读(37) 评论(0) 推荐(0)
  2023年3月23日
摘要: 标准内置对象Object 1、Object.defineProperty() /** * Object.defineProperty() * Object.defineProperty()方法会直接在一个对象上定义一个新属性,或者 * 修改一个对象的现有属性,并返回此对象。 * * 备注:应当直接在 阅读全文
posted @ 2023-03-23 17:47 法老的微笑 阅读(55) 评论(0) 推荐(0)
  2023年3月21日
摘要: 当手机号中的值为123验证码必填。 手机号为非123的值非必填。 代码示例: <template> <div> <el-form :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="100px" class 阅读全文
posted @ 2023-03-21 15:20 法老的微笑 阅读(39) 评论(0) 推荐(0)
  2023年2月7日
摘要: 2.4.0新增 定义:包含了父作用域不作为 prop 被识别(且获取)的 attribute 绑定( class 和 style 除外)。当一个组件没有声明任何 prop 时,这里会包含所有父作用域的绑定(除class 和 style 除外),并且可以通过 v-bind="$attrs" 传入内部组 阅读全文
posted @ 2023-02-07 15:15 法老的微笑 阅读(85) 评论(0) 推荐(0)
  2023年1月13日
摘要: v-if支持在 <template> 元素上使用,能和 v-else 搭配使用。 v-show 不支持在 <template> 元素上使用, 也不能和 v-else 搭配使用。 <template> <!-- <template> 上的 v-if 因为 v-if 是一个指令,它必须依附于某个元素。但 阅读全文
posted @ 2023-01-13 14:37 法老的微笑 阅读(141) 评论(0) 推荐(0)
摘要: <template> <div> <!-- 绑定内联样式--绑定对象 --> <!-- <div :style="{color: activeColor, 'font-size': fontSize+ 'px'}">测试</div> --> <div :style="styleObj">绑定对象</ 阅读全文
posted @ 2023-01-13 14:16 法老的微笑 阅读(311) 评论(0) 推荐(0)
  2023年1月12日
摘要: 代码: <template> <el-button type="text" @click="open">点击打开 Message Box</el-button> </template> <script> export default { methods: { open () { this.$conf 阅读全文
posted @ 2023-01-12 14:42 法老的微笑 阅读(650) 评论(0) 推荐(0)
  2023年1月11日
摘要: 代码示例: let id = 0 const todos = ref([ { id: id++, text: 'Learn HTML' }, { id: id++, text: 'Learn JavaScript' }, { id: id++, text: 'Learn Vue' } ]) 控制台: 阅读全文
posted @ 2023-01-11 13:34 法老的微笑 阅读(61) 评论(0) 推荐(0)
  2023年1月10日
摘要: Object.freeze(),会阻止修改现有的property,意味着响应系统无法再追踪变化 代码示例: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible 阅读全文
posted @ 2023-01-10 16:37 法老的微笑 阅读(100) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 15 下一页