我必须手动挂载博客文章,但我不确定这是否是正确的工作方式,它只带9页,每篇有4个帖子,但博客有83个帖子!
<?php
$paged = get_query_var('paged');
$args = array(
'numberposts' => 4,
'offset' => $paged*4,
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'post',
'post_status' => 'publish',
'suppress_filters' => true
);
$posts_array = get_posts( $args );
?>
Run Code Online (Sandbox Code Playgroud)
不管怎么说,还是要谢谢你.
我正在尝试编写一个脚本,用户在该脚本中插入月收入,并在30年后获得复合利息的未来值.就像现在一样,我已经为测试目的分配了一些值.
// Future Value
var investment = 800;
var annualRate = 2;
var monthlyRate = annualRate / 12 / 100;
var years = 30;
var months = years * 12;
var futureValue = 0;
for ( i = 1; i <= months; i++ ) {
futureValue = futureValue + investment * Math.pow(1 + monthlyRate, months);
}
Run Code Online (Sandbox Code Playgroud)
问题是,我实际上是从使用内置FV()公式的Excel电子表格中构建这个,并且在交叉检查时,我的结果完全关闭...任何想法我做错了因为我不进金融数学.提前致谢.