7 Star 17 Fork 2

kaikai / hplus_requirejs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

此框架是基于requirejs的,界面是改装hplus,优化了文件组织结构,废弃原hplus的iframe,用requirejs-text插件加载html,改装成了单页应用;并用npm管理了前端开发常用的一些jquery插件。

框架运行需要进入package.json目录npm install一下,项目启动运行有跨域问题,需要解决浏览器跨域或者全部丢到tomcat下面。

说明: 此系统是多窗口系统,原来的hplus+是采用的iframe窗口作为页面的载体,不但有大量冗余代码,而且性能也会有一定影响。改成requirejs加载html后,页面分四个状态(init:第一次打开页面,in:切入页面,out:切出页面,destroy:关闭页面),页面的作用域暴露在window.scope上面、模块return的对象属性会直接暴露在window上面,从而可以进行事件的绑定。

│ favicon.ico
│ index.html 入口文件
│ package.json 包管理
│ README.md

├─common
│ ├─css
│ │ common.css 公共样式
│ │ style.css hplus样式
│ │
│ ├─img
│ │ systemLogo.png
│ │
│ └─js
│ common.js 公共方法
│ hplus.js hplus控件js
│ source.js data-main

├─node_modules 第三方lib

└─pages 模块(页面),内有模块css、html、js以及测试用的数据

软件截图

The MIT License (MIT) Copyright (c) 2017 kaikai Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

此框架是基于requirejs的,界面是改装hplus,优化了文件组织结构,废弃原hplus的iframe,用jquery的load代替,改装成了单页应用;并用npm管理了前端开发常用的一些jquery插件,兼容IE9。注:本人初学requirejs,仅供学习参考。 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/hkgit/hplus_requirejs_singlePage.git
git@gitee.com:hkgit/hplus_requirejs_singlePage.git
hkgit
hplus_requirejs_singlePage
hplus_requirejs
master

搜索帮助