Home > Web Front-end > JS Tutorial > Share your own tips for writing a framework DreamScript_javascript

Share your own tips for writing a framework DreamScript_javascript

PHP中文网
Release: 2016-05-16 19:20:36
Original
1182 people have browsed it

DreamScript is a framework that I started writing by myself in January last year. In June, due to changing jobs, I didn’t have more time to write it by myself. During this period, I improved it many times. I’ll post it here first. I hope everyone can read it. Let’s watch and learn together. If you are interested in doing it together, I’m also very welcome. Let me explain here that he mainly uses SOAP and WebService to exchange data. This is also my idea, and only uses WS as the communication standard. In this, I incorporated the highlights of many frameworks and wrote them according to my own preferences.
The following is the version description of the function I recently added:
2006-12-29 17:12 v0.612.29.1712
Add web-client.xml configuration file parsing function (preliminary construction)
Added onload and onunload monitoring for window. Users use onLoad and onUnLoad methods instead.
Add autoStartupListener in onload. Parse the configuration file web-client.xml here.
Add autoShutdownListener in onunload.
Add autoStartupListener to system.config. configFileName attribute, the default value of this attribute is web-client.xml

2006-12-31 14:52 v0.612.31.1452
Add Cookie operation class and add operations based on XMLDOM.

2007-1-5 10:19 v0.701.05.1020
Rewrite system.Component, system.ui.Control, system.Enum, streamline system.ui.Control code to improve efficiency

2007-1-9 10:37 v0.701.09.1037
Add onBeforeUnLoad event for system.ui.Page class to be triggered when window.onbeforeunLoad

2007-1-10 11:14 v0 .701.10.1114
Add AlternateItem alternate items to the system.ui.Repeater control, and add the range attribute to control whether the generated data items are arranged horizontally

2007-1-13 16:34 v0.701.13.1634
Enhance the PaginationItem function of system.ui.Repeater, add page number output, and cancel the range attribute. It is up to the user to set style
on p (if you want to arrange it horizontally, you can set style="float:left"). Repeater is wrong. p's STYLE does any processing.

2007-1-15 10:57 v0.701.15.1057
Add system.ui.DOMControl basic class. It mainly expands the functions of the control on the basis of DOM and adds a life cycle. It is mainly used as a single control without complex logic, such as label, textbox, link, etc. In terms of DOM event processing, His events are packaged to fit the unified
style. For example, label.onClick is executed in label.onclick, but the parameter e of label.onClick agrees with it
--------------------- -------------------------------------------------- -------------------------------------------------- ---------------------------------------
DreamScriptForumMain.htm can directly view the effect. The logic code of the DreamScriptForumBinMain.js page

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template