如何自动运行此代码 [英] How to automatically run this code
问题描述
您总是对我有不可思议的帮助...但是,我真的在这里很困惑.
you are always such an incredible help to me ... but, Im really stumped here.
http://canboria.co.za/PHP/CALCULATOR/bond.htm
我使用一些在线参考资料和工具算出的基本债券/抵押计算器.进行一些修改.
A basic bond/mortgage calculator that I have worked out using some online refs & a little modification.
我如何使此脚本计算出页面加载的详细信息(我确实尝试了onload操作,但没有做到这一点……一直在运行循环&超时)
How can I make this script work out the details on page loading (i did try action onload but, didnt do the trick ... kept running a loop & times out)
理想情况下,我希望每次更改值时,它都应该计算出回赠值" ...十分感谢任何帮助,想法或指导!
Ideally, I want to have that each time a value is altered, it should work out the REPAYMENT VALUE ... any help, ideas or guidence greatly appreciated!
推荐答案
window.onload函数似乎对我有用.
The window.onload function seems to work for me.
只需添加此代码
window.onload=giveAnAnswer;
这篇关于如何自动运行此代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!