JSFiddle - React, Tailwind, and code Playground

by booktu8

JavaScript

this.f_sp_getcustomercallinfo = function(strCustomerCallID, strFieldList,
	  pCallBack) {
	  if (pCallBack == null)
	    return 0;

	  var invokeid = new Date().getTime();
	  if (this.sp_ws != null) {
	    var sendstr = "{\"MSGTYPE\":\"CMD\",\"CMD\":\"GETCUSTOMERCALLINFO\",\"INVOKEID\":\"" + invokeid +
	      "\",\"CUSTOMERCALLID\":\"" + strCustomerCallID +
	      "\",\"FIELDLIST\":\"" + strFieldList + "\"}";
	    _sp_rt_getcustomercallinfo_callback = pCallBack;
	    return this.fSendWSMsg(sendstr);
	  } else {
	    return 0;
	  }
	}