This article mainly introduces how to use AngularJS and PHP's Laravel to implement single-page comments. The example in this article is a model of frontend JavaScript and backend PHP joint programming. If you need it, you can refer to the complete
This article mainly introduces how to use AngularJS and PHP's Laravel to implement single-page comments. the example in this article is a model of frontend JavaScript and backend PHP joint programming. if you need it, you can refer to the complete
First, put the comments-ajax.js and comments-ajax.php in the folder of the topic you are using;Comments-ajax.js The code is as follows:Copy code Var I = 0, got =-1, len = document. getElementsByTagName ('script'). length;While (I Var js_url =
Php unlimited classification practices-comment and reply functionsThe comment function is often seen below the details pages of major forums or news sections. Of course, it is not just as simple as directly posting comments, and you can reply to
PHP Unlimited Classification Combat--Comment and reply function
Often in the major forums or the news section of the details page to see the comment function, of course, not only directly post comments so simple, you can reply to other people's
We have created a single-page template in the previous article. we can find the code and index of the single-page template. php is similar, but today we make them a little different. we add a comment form to the article template so that visitors can
Php imitates the functions (middle) of the QQ space or circle of friends to publish, comment, reply to, or delete dynamic or comments. php circle of friends
How to publish and dynamically present the content in the previous article. Now let's take a
For example: A message, B with @ replied to A, so B's reply may be like this:
@aHow much did you have?
That is, when the mouse hovers over the @a, a comment is displayed in a suspended area.
Implementation stepsHere we will take the Inove theme
Often in the major forums or the news section of the details page to see the comment function, of course, not only directly post comments so simple, you can reply to other people's comments, others can comment on your reply again or reply, so
Ziadoz a list of PHP resources that are maintained on GitHub, including libraries, frameworks, templates, security, code Analysis, logs, third-party libraries, configuration tools, Web tools, books, ebooks, classic blogs, and more. Bó Lè has
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.