javascript-array
var str = "How are you doing today?";
var res = str.split(" ");
string.split(separator,limit)
var str="How are you doing today?";
var n=str.split(" ",3);
n[0]=How
n[1]=are
program
var t1='<%=reportDate%>';
t1 = t1.split(" ")[0];
function lookupTable(_returnField,_tableField,_searchValue){
var _table=_tableField.split('.')[0];
var _field1103=_tableField.split('.')[1];
var r1103='';
var s1103='tableRead?table='+_table+'&fields='+_returnField
+'&where=where '+_field1103+': %60'+_searchValue +'%60&format=S&callback=?&db='+DATABASE;
$.getJSON(s1103,
function(data) {
if (data[0]){
r1103=data[0][0];
}
}
)
return r1103;
}
沒有留言:
張貼留言