javascript eval access json object from variable

response.Login.countByHourSuccess

จะใช้คำสั่งแบบนี้

var method = ‘Login’;

eval(‘response.’+method).countByHourSuccess

Related posts:

This entry was posted in jquery. Bookmark the permalink.