11 2021 档案
摘要:开发中发现页面传中文字符会发生乱码,有效的方法就是进行编码传值,接收后解码。 传值页面: var name = "测试"; window.open("index1.aspx?name=" + encodeURI(encodeURI(name))); 接收页面: var name = decodeUR
阅读全文
摘要:查看oracle server端字符集 select userenv('language') from dual; 如果显示如下,一个汉字占用两个字节 SIMPLIFIED CHINESE_CHINA.ZHS16GBK 如果显示如下,一个汉字占用三个字节 SIMPLIFIED CHINESE_CHI
阅读全文
摘要:父组件向子组件传值 1. 组件内部通过props接收传递过来的值 Vue.component('menu-item', { props: ['title'], template: '<div>{{ title }}</div>' }) 2. 父组件通过属性将值传递给子组件 例 <!DOCTYPE h
阅读全文
摘要:全局组件注册语法 1.组件注册语法 Vue.component(组件名称, { data: 组件数据, template: 组件模板内容 }) // 注册一个名为 button-counter 的新组件 Vue.component('button-counter', { data: function
阅读全文
摘要:el-carouse组件是自带鼠标事件,要修改则需要清除原有事件,即鼠标的移入事件@mouseenter.native="delHandleMouseEnter"。 <el-carousel ref="carousel" trigger="click" arrow="always" height="
阅读全文