when I use test.tested-by, the javascript reports -by is undefined. I am sure test contains tested-by property. Any solution here?
Try using test['tested-by'] instead. tested-by looks like tested minus by
You need to use:
test["tested-by"]
This way you can provide any property name, even reserved keywords (like "class").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With