| |

VerySource

 Forgot password?
 Register
Search
View: 15|Reply: 5

Ask jsframework implementation ideas.

[Copy link]

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

Post time: 2020-3-6 10:30:01
| Show all posts |Read mode
1, can you talk about the implementation ideas of Using ("System.Web.UI");
2, Using (""); Can you resolve the conflict of similar names?
such as:
The class name in System / Web / UI / A.js is A
The class name in System / Web / MM / A.js is A

Import at the same time
Using ("System.Web.UI.A");
Using ("System.Web.MM.A");

Then it conflicts ...



 Thank you....
Reply

Use magic Report

0

Threads

5

Posts

6

Credits

Newbie

Rank: 1

Credits
6

 China

Post time: 2020-5-22 06:45:01
| Show all posts
The realization idea is to obtain it on demand, divide the JS code into several modules, and transfer them into modules when needed. Of course, there is also a set of caches in it to prevent repeated loading.

Using ("System.Web.UI.A");
Using ("System.Web.MM.A");

new System.Web.UI.A ();
new System.Web.MM.A ();

When there is a conflict, you can use the long class name to solve it.
Reply

Use magic Report

0

Threads

4

Posts

4

Credits

Newbie

Rank: 1

Credits
4

 China

Post time: 2020-5-22 15:45:01
| Show all posts
I have also done the JS call, haha, but the issues considered may not be complete ... I also want to hear any good suggestions ...

I can call it like this:

<script type = 'text / javascript' src = '/ sqFwJsCs / default.js'> </ script>
<script type = "text / javascript">
// <! [CDATA [
 / * -------------------------- begin sqFwJsCs -------------------- ------------ * /
 //shawl.qiu framework javascript client-side
 / * ---------------- global -------------------- * /
 //im.help.self(true);
 //im.help.source(true);
 //-
 //im.readme ();
 //-
 //im.find('default.js',true);
 //im.find(null,true);
 / * ---------------- object -------------------- * /
 //im.go('object.default ');
 //im.help('object.default ', true);
 //-
 / * ---------------- string -------------------- * /
 //im.go('string.default ');
 //im.help('string.default ', true);
 //-
 //im.go('string.format ');
 //im.help('string.format ', true);
 //-
 //im.go('string.random ');
 //im.help('string.random ', true);
 //-
 //im.go('string.highlight ');
 //im.help('string.highlight ', true);
 //im.help('string.highlight ');
 //-
 / * ---------------- check --------------------- * /
 //im.go('check.default ');
 //im.help('check.default ', true);
 //-
 / * ---------------- array --------------------- * /
 //im.go('array.default ');
 //im.help('array.default ', true);
 //-
 / * ---------------- image --------------------- * /
 //im.go('image.default ');
 //im.help('image.default ', true);
 //-
 / * ---------------- form --------------------- * /
 //im.go('form.default ');
 //im.help('form.default ', true);
 //-
 //im.go('form.select ');
 //im.help('form.select ', true)
 //-
 //im.go('form.validate ');
 //im.help('form.validate ', true);
 / * ---------------- utility --------------------- * /
 //im.go('utility.default ');
 //im.help('utility.default ', true);
 //-
 / * ---------------- multi options ------------- * /
 //im.go('string.default|string.random ');
 //-
 //im.help('string.default|string.random ', true);
 / * -------------------------- end sqFwJsCs -------------------- -------------- * /
//]]>
</ script>
<script type = "text / javascript">
// <! [CDATA [
 // use here
//]]>
</ script>
Reply

Use magic Report

0

Threads

4

Posts

4

Credits

Newbie

Rank: 1

Credits
4

 China

Post time: 2020-5-22 20:30:02
| Show all posts
im.help can call and display the corresponding .txt help file
| Multiple files can be called ....
im.help (path, true) means to highlight the help file

<script>
 Dynamic loading
</ script>
<script>
use
</ script>
Reply

Use magic Report

0

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-5-24 16:15:01
| Show all posts
jsframework
Where can I download it?
Reply

Use magic Report

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

 Author| Post time: 2020-5-28 13:30:01
| Show all posts
Looking at your jsframework.js, hehe

It would be great if the boss could share this framework ...
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list