最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
WordPress使用Node.js 重写的例子
时间:2015-05-26 编辑:简简单单 来源:一聚教程网
要 WordPress 4.3 完全拒绝 PHP 还是不可能的,但是开发者计划重写一些基本的核心类,包括 WP_Query 、WP_Erro、和 WP_Object_Cache。
var query = new wp.Query (); query.setQuery ({ post_type: 'post', post_status: 'publish', posts_per_page: 5 }); _.each (query.getPosts (), function (post) { console.log (post.title); console.log (post.content); console.log (post.author); });
相关文章
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31
- 使用HTML截图并保存为本地图片的代码展示 10-31