The invention discloses a Web front-end data local-storage and access method based on the local Storage. The method includes that 1, according to the data type, a storage region is divided into four regions, a novel data storage format is designed, and data is read from a memory object instead of a magnetic disk, so that the problem that the local Storage is low in efficiency of frequently reading data is solved; 2, when data is stored in the local Storage and exceeds the upper limit of storage space, errors occur, program termination is resulted, and program can not be written; in order to overcome the defects, an order array is added in each storage region, the key values of data are stored, based on the LRU algorithm and according to the data using time sequence, header data is marked as 'useless data', in two aspects of early-period prevention and later-period monitoring, a space full error handling mechanism is designed, and the 'useless data' is timely cleared away to make space for normal writing of data.