我需要从jsfcljs
函数中转义逗号 [,]。我的功能如下所示:
if(typeof jsfcljs == 'function'){jsfcljs(document.forms['frmWorkProduct'],
'frmWorkProduct:attachmentList1:1:j_id_jsp_1358599777_276,frmWorkProduct:attachmentList1:1:j_id_jsp_1358599777_276,
fileName,test,.xlsx,attachId,1355462000554','');}return false
here ... fileName,test,.xlsx,attachId
... where fileName
contains','
需要转义,因为它需要test,.xlsx
astest
和.xlsx
as 参数。谢谢。