次の方法で共有


Using JScript Libraries in Other JScript Files

Versions:  2008,2010
Published:  12/12/2010
Code:  vstipProj0025

 

When you want to use your own custom JScript library it's a very straightforward process to do.  You just CLICK AND DRAG the file from Solution Explorer into your web page:

image

 

 

Then start using the library:

image

 

 

But what if you want to use the library in another JScript file?  No problem.  To have one file used by another just CLICK AND DRAG the file name from the resource file (GreatResource.js in this example) into the consuming file (MyCoolLib.js in this example):

image

 

 

When you do, it it will make a reference automatically:

image

 

 

And you can start using it right away with IntelliSense now aware of the resource contents:

image