The resource loading... loading...

Please teach the JS custom function problem

Author: flyju, Created: 2020-04-03 20:22:01, Updated: 2020-04-03 22:11:35

function BTC(price,amount){
var buy = exchange.IO(api, POST tag, /submitOrder.php tag, mk_type=usdt tag + &coinname=btc tag + &type=1 tag + &price=+price + &amount=+amount + &tag=121 tag) I'm not sure. I want to implement my own package of different transactions for the buy and sell function can it be written like this? I want to call BTC.buy ((price,amount) at any location how to write beginner request bow thank you~~


More

The grassSearch for js object-oriented at http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_encapsulation.html