Use javascript to operate the JSON class library TAFFYDB. This section describes how to query, add, delete, and modify data. Some time ago, Json data was used in work, and some simple additions, deletions, modifications, and queries can be placed on the client, which can also reduce the pressure on the server. I searched several javascript class libraries that can operate on Json respectively, and finally selected TAFFY DB. The reason is as follows:
1. The BSD open source protocol is used, so there is no need to worry about commercial restrictions.
2. Someone has been updating and is not in conflict with other frameworks (such as Jquery, YUI, and Dojo ).
3. Complete functions-addition, deletion, modification, query, sorting, and so on.
4. Small, only 17 K after compression.
Therefore, after the work, I will write this article and recommend this class library for you. I hope to help some Coder who are looking for Json query and modification, and exchange and study with everyone.
Basic taffy db Information
Project home: http://taffydb.com/
Managed address: https://github.com/typicaljoe/taffydb
Usage:
The Code is as follows: