Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
89 views
in Technique[技术] by (71.8m points)

javascript - retrieve parameters of a jsFunction listed into a nodeList

I'm trying to retrieve the parameters of a onclick attribute into a webpage. So far i've been able to retrieve the function with all the parameters using nodeValue listing. But once there i'm wondering how to get some parameters of the function. This code:

var action = document.getElementById('action_3')
for (var att, i = 0, atts = action.attributes, n = atts.length, arr = []; i < n; i++){
 att = atts[i];
console.log(atts.onclick.nodeValue);
}

gets me this result

cba.facture.controllers.factureListeController.createFactureListeTooltipActionDialog('73928462',
                         'action_3_TooltipDialog',
                         'action_3',
                         '190px', 'Télétransmise', '1', 'false', '0',
                         '7622', '14962', 'Télétransmise', '')


   

Now i'm trying to retrieve the parameters of the createFactureListeTooltipActionDialog, but i don't really know how..

question from:https://stackoverflow.com/questions/65863695/retrieve-parameters-of-a-jsfunction-listed-into-a-nodelist

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...