获取页面中被选中的内容


function getSelectedText() {
    if (window.getSelection) {
        return window.getSelection();
    }
    else if (document.selection) {
        return document.selection.createRange().text;
    }
    return '';
}



( ! ) Warning: Missing argument 1 for cwppos_show_review(), called in /data/www/enjoyphp/wp-content/themes/flat/content-single.php on line 29 and defined in /data/www/enjoyphp/wp-content/plugins/wp-product-review/includes/legacy.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0000354984{main}( ).../index.php:0
20.0001355272require( '/data/www/enjoyphp/wp-blog-header.php' ).../index.php:17
30.194810159088require_once( '/data/www/enjoyphp/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.196010230232include( '/data/www/enjoyphp/wp-content/themes/flat/single.php' ).../template-loader.php:74
50.279010801632get_template_part( ).../single.php:5
60.279010802152locate_template( ).../general-template.php:167
70.279010802248load_template( ).../template.php:643
80.279010802632require( '/data/www/enjoyphp/wp-content/themes/flat/content-single.php' ).../template.php:686
90.283710787744cwppos_show_review( ).../content-single.php:29

发表评论

电子邮件地址不会被公开。 必填项已用*标注