Pass multiple values with onClick in HTML link

后端 未结 8 1580
眼角桃花
眼角桃花 2021-02-04 03:50

Hi Im trying to pass multiple values with the HTML onclick function. Im using Javascript to create the Table

var user = element.UserName;
var valuationId = eleme         


        
8条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 04:20

    enclose each argument with backticks( ` )

    example:

    
    
    function updateById(id, name) {
       alert(id + name );
       ...
    }
    

提交回复
热议问题