can't read property addWidget of undefined with JSON and gridstack
问题 Running into a problem with my attempt to build a gridstack dash I get "Uncaught TypeError: Cannot read property 'addWidget' of undefined" when trying to load the page.. (the code is based on the basic gridstack serialized demo https://github.com/gridstack/gridstack.js/blob/develop/demo/serialization.html) my changed script section is <script type="text/javascript"> $(function() { var options = {}; $('.grid-stack').gridstack(options); new function() { this.grid = $('.grid-stack').data(