Inclusion criteria:  1.Males and females ≥ 18 and ≤ 80 years of age; 2.Recurrent or metastatic squamous cell carcinoma of the head and neck and nasopharyngeal carcinoma confirmed histologically or cytologically are no longer suitable for local treatment such as surgery or radiotherapy； 3.Has received at least a first-line standard regimen for relapsed and metastatic disease and has progressed during or after treatment; 4.The Eastern Cooperative Oncology Group (ECOG) had a physical status score of 0 or 1. 5.Life expectancy ≥12 weeks; 6.At least one measurable lesion per RECISTv1.1 and iRECIST; 7.Willingness to provide consent for fresh pre-treatment biopsies, or,an archival specimen could be required within two years prior to the first dose of study drug; 8.Adequate organ and marrow function per protocol specifically defined; 9.Females of childbearing potential ,and males who are sexually active with a female partner of childbearing potential, must use effective contraception from time of screening, and must agree to continue using such precautions for 60 days after the final dose of JS004; 10.All acute toxic reactions caused by previous anti-tumor therapy, surgery or radiotherapy were alleviated to grade 0-1 (according to NCI-CTCAE version 5.0) or to the level specified by the inclusion/exclusion criteria.Except for hair loss, pigmentation, or other toxicity that the researcher believes does not pose a safety risk to the subject, and does not affect treatment compliance. 11.Able to understand and willing to sign the Informed Consent Form;  Exclusion criteria:  1.This is a histologically or cytologically confirmed salivary adenocarcinoma or other non-squamous cell carcinoma;nasopharyngeal carcinoma is not applicable. 2.Previously received anti-BTLA or anti-HVEM antibody treatment. 3.There are necrotic lesions, and the investigator has assessed the risk of hemorrhage 4.Other malignancies were diagnosed within 5 years prior to study entry; 5.There are uncontrolled or symptomatic active central nervous system (CNS) metastases; 6.Poor control of pleural effusion, peritoneal effusion, or pericardial effusion; 7.Peripheral neuropathy or hearing loss≥Grade 2 (according to NCI-CTCAE 5.0); 8.Pregnant or breastfeeding women.  9.Known history of allogeneic organ transplantation or allogeneic hematopoietic stem cell transplantation; 10.Idiopathic pulmonary fibrosis, drug-induced pneumonia, mechanized pneumonia (i.e., bronchiolitis obliterans), radiation pneumonia with clinical symptoms or requiring steroid treatment, active pneumonia, or other moderate to severe lung diseases that seriously affect lung function. 11.The following conditions occurred within 6 months before the first study administration: myocardial infarction, severe/unstable angina pectoris, NYHA grade 2 or higher cardiac insufficiency, clinically significant supraventricular or ventricular arrhythmia, and symptomatic congestion Heart failure 12.Poorly controlled hypertension; hypertensive crisis or hypertensive encephalopathy occurred within 6 months of the first administration; 13. Those who are known to be allergic to the study drug or any of its excipients, or have severe allergic reactions to other monoclonal antibodies; 14. Have received the following drugs or treatments before the first study drug treatment:  Major surgery has been performed within 28 days before the first study administration. Received systemic anti-tumor therapy within 28 days before the first study administration; Participated in other intervention studies within 28 days before the first study dose; Received systemic immunomodulatory drug treatment within 14 days before the first study administration or within 5 half-lives of the drug; Received systemic corticosteroids or other systemic immunosuppressants within 14 days before the first study administration; Received oral or intravenous antibiotic treatment within 14 days before the first study administration (except for the case of prophylactic use of antibiotics); Any live vaccine has been vaccinated within 28 days before the first study administration; 15. Have a history of autoimmune diseases, including but not limited to myasthenia gravis, myositis, autoimmune hepatitis, systemic lupus erythematosus, rheumatoid arthritis, inflammatory bowel disease, blood vessel thrombosis related to antiphospholipid syndrome Formation, Wegener's granulomatosis, Sjogren's syndrome, Guillain-Barré syndrome, multiple sclerosis, vasculitis or glomerulonephritis; 16. Severe infections (NCI-CTCAE> level 2) occurred within 28 days before the first study administration, such as severe pneumonia, bacteremia, and infectious comorbidities that require hospitalization.  17. Active infections, including tuberculosis (clinical diagnosis includes clinical history, physical examination and imaging findings, and TB examination according to local medical routines), hepatitis B, hepatitis C or human immunodeficiency virus (HIV antibody positive) ； 18. The presence of other serious physical or mental illnesses or abnormal laboratory tests, or alcoholism, drug abuse, etc., may increase the risk of participating in the study, affect treatment compliance, or interfere with the results of the study, and other cases determined by the investigator to be unsuitable for participation Patients in this study."