简体   繁体   中英

How to extract property from JavaScript object

I am using a library called mxGraph and in my code I subscribe for an event. In the callback function I receive according to the documentation the sender object and the event object. I outputted the event object to the console and got the following:

在此处输入图片说明

My question is how to get cells ?

Thanks.

Martin

mxEventObject.properties.cells

要么

mxEventObject['properties']['cells']

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM