如何调用一个项目的另一个项目的javascript函数是否可能 [英] how to call a javascript function of one porject an another project can it possible
本文介绍了如何调用一个项目的另一个项目的javascript函数是否可能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
..谢谢提前我我在等待你的有价值的解决方案...
下面的功能是一个项目,我想在项目B onclick事件中调用该功能...
<!DOCTYPE html>
< html lang =enxmlns =http://www.w3.org/1999/xhtml>
< head>
< meta charset =utf-8/>
< title>< / title>
< script>
函数updateMyRentals()
{
alert(其罚款);
}
< / script>
< / head>
< body>
< h2>测试功能< / h2>
< input type =buttononclick =updateMyRentals()value =来自本地网页的呼叫/>
< / body>
< / html>< pre>
解决方案
参考:
在ASP.NET中管理JavaScript库 [ ^ ]
me have two project A and B which have javascript functions.now me want to access the javascript function of A in B project.plz help me out of this problem
..thanks in advance i am waiting for your valueble solutions...
the below funtion is of A project me want to call that function in project B onclick event...
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title></title> <script> function updateMyRentals() { alert("its Fine"); } </script> </head> <body> <h2> Test Function </h2> <input type="button" onclick="updateMyRentals()" value="Call From Local Page" /> </body> </html><pre>
解决方案
refer :
Managing Your JavaScript Library in ASP.NET[^]
这篇关于如何调用一个项目的另一个项目的javascript函数是否可能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文