var sqlwhere = "AAA";var rq = "${=sql('db', 'select per_di from Ts_person where per_name = \'AAA\'',1,1)}";
现在这么写能获取的到值,我要把sqlwhere放到AAA变成动态的应该怎么写,就用这个语法
var sqlwhere = "AAA";
var rq = FR.remoteEvaluate('=sql("db", "select per_di from Ts_person where per_name = "' + sqlwhere + '",1,1)');
下面这样试试
var rq = "${=sql('db', 'select per_di from Ts_person where per_name = '"+sqlwhere +"'',1,1)}";
==================
var rq = "${=sql('db', 'select per_di from Ts_person where per_name = \'"+sqlwhere +"\'',1,1)}";
var sqlwhere = "AAA";var rq = "${=sql('db', 'select per_di from Ts_person where per_name = \\\'"+sqlwhere +"\\\'',1,1)}"