Can js generate parameter names dynamically?

const a="name";

has a parameter a whose value is name;
I have a

in the less file.
.name{
    fontsize:18px;
}

I need to get name through an in the component and then use

directly.
<div classname={style.name}></div>

that"s about it, and you need to generate parameter names dynamically.

Mar.16,2022

I don't know if that's what I mean

let a = 'name'
let obj = { a:1, name:2 }
console.log(obj.a)    // 1
console.log(obj[a])    // 2
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e36f67-430b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e36f67-430b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?