A file commenting method and a comment viewing method. The method comprises: displaying a file content page of an instant messaging client, the file content page comprising file content of a target file (201); on the basis of a commenting operation for target content in the file content, displaying comment content of the target content (202); and when detecting that the commenting operation for the target content is completed, displaying a conversation page of a comment object, the conversation page comprising a comment message of the target file sent by the comment object, and the comment message comprising the target content, the comment content, and a file identifier of the target file (203). The method can improve the commenting efficiency.
展开▼