[System.Object[]] doesn't contain a methodnamed 'replace'

后端 未结 3 1708
轻奢々
轻奢々 2021-01-15 01:51

The following is part of the file edit07.html:
From $array I\'m able to access the $empid = $user.employeeid and $seat = $user.Position<

3条回答
  •  无人共我
    2021-01-15 02:19

    Get-Content returns not a single string, but array of strings (split on new lines) and array itself doesn't have a replace method. You can turn it into a single string with -Raw parameter or call replace method on each string in the array.

提交回复
热议问题