weixin_33726318 2020-02-26 05:07 采纳率: 0%
浏览 31

发送帖子ID到javascript

I am using Framework7.

I get the posts with php. It works fine. And I can get posts ID like this:

<a href="/single/" id="'.$row['id'].'" >

And I want to use it in Framework7 router when an user click the post:

routes: [
    {
      path: '/',
      url: 'posts.php?id=',
    }
]

How can I do that? Or, can I do that?

  • 写回答

0条回答 默认 最新

    报告相同问题?