The differences in accuracy,repeatability and uniformity between the tablet pressing method and the melting method for the detection of electronic glass batch were compared by using an X-ray fluorescence spectrometer.It was showed that the tablet pressing method has the advantages of high cost-effectiveness and no need for additional materials,making it an optimized choice for detecting the uniformity of electronic glass batch.The tablet pressing method was basically consistent with the melting method in the uniformity of the batch,and can also meet the production needs in terms of accuracy.Therefore,the tablet pressing method will has important application value.