current position:Home>Smart contract function call problem

Smart contract function call problem

2022-02-03 22:48:12 Q & A of Denglian community

I have such a smart contract function image.png I am here JS Pass in a number in the code and want to call this function image.png If the number passed in exceeds the range of the array , This call will not implement , Now I want to JS Determine whether this call can be implemented , How to write ?

Other answers 1:

Other answers 2:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.

Random recommended