Please give me an answer. Please output scope.code scope.name separately. These are all valuable. . But why does the content of the console be {object object}], and the storage into the database fails...
Now this region has been jsonized, but it still cannot be saved successfully...
1. Because you converted the region object into a string, '+*string' calls the toString method of $scope.region
2. It is not converted into JSON format
First of all, print it out
[object Object]
是没问题的,因为你的$scope.region
Is it really an object? If you want to print the real content, you should write like this:Second, the save failed. Please type out the error message so that we can check it for you