![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
fish
才不是小弱鸡
一起学习~
展开
-
fish模块化
0x00 模块化开发 首先需要引入模块化js用来处理模块化的加载开发 <script type="text/javascript" src="frm/fish-desktop/js/fish-desktop-require.js" data-main="main.js?v=1.0.0"></script>然后需要进行主视图IndexView.js的渲染,之后就可以定义模块了define(['./person'], function (person) {...原创 2020-09-09 14:34:18 · 539 阅读 · 0 评论 -
fish控件语法
0x00 控件初始化$('#app').combobox({ value: 1, dataSource: [ {name: 'Apple', value: 0}, {name: 'Banana', value: 1} ]});dataTextField: 'label',// 这个属性是选择下拉菜单中显示的数据dataValueField: 'value',// 决定使用的value// 通过原型链修改属性默认参数$.ui.comb原创 2020-09-08 15:15:19 · 320 阅读 · 0 评论 -
fish表格
0x00 demo$("#grid01").grid({ data: [ {id:"1",invdate:"2010-05-24",name:"test",note:"note",tax:"10.00",total:"2111.00"} , {id:"2",invdate:"2010-05-25",name:"test2",note:"note2",tax:"20.00",total:"320.00"}, {id:"3",invdate:"200原创 2020-09-08 14:17:09 · 278 阅读 · 0 评论 -
fish数据模型和数据集合
0x00数据模型的方法var PeopleModel = fish.Model.extend({ defaults: { name: 'unknown', birthday: '', gender: 'unknown' }});var people = new PeopleModel();console.log(people.get('name'));// get方法获取属性值people.set({ name: 'j原创 2020-09-07 15:29:14 · 918 阅读 · 0 评论 -
fish视觉组件
0x00 视觉组件中的setViewvar parentView = new ParentView().render();// 1)setViews// 父视图的body节点插入ChildView1和ChildView2两个子视图parentView.setViews({'.body': [new ChildView1(), new ChildView2()]});// 父视图的body节点渲染ChildView1和ChildView2两个子视图parentView.render...原创 2020-09-04 17:34:03 · 795 阅读 · 0 评论